From 624cbd8b7d7114c4e93c36b2b1f9f19548a682fc Mon Sep 17 00:00:00 2001 From: Sall Date: Sat, 14 Oct 2023 09:47:20 +0100 Subject: [PATCH] Update rclone-action.yml Signed-off-by: Sall --- .github/workflows/rclone-action.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rclone-action.yml b/.github/workflows/rclone-action.yml index 2a8aead8..2075bc67 100644 --- a/.github/workflows/rclone-action.yml +++ b/.github/workflows/rclone-action.yml @@ -12,11 +12,13 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +permissions: read-all + jobs: sync: if: github.repository == 'z-shell/wiki' runs-on: ubuntu-latest - environment: R2 + environment: R2 env: img_local_path: "static/img" img_remote_path: "r2store:r2-store/img" @@ -26,13 +28,13 @@ jobs: - name: "⤵️ Check out code from GitHub" uses: actions/checkout@v4 - name: "⏫ Run rclone/r2-store/img" - uses: z-shell/.github/actions/rclone@v1.0.8 + uses: z-shell/.github/actions/rclone@5a24925e0cf2131910829d7763b3acbaf9bb0c3a with: config: ${{ secrets.R2_STORE }} args: "copy ${{ env.img_local_path }} ${{ env.img_remote_path }}" debug: false - name: "⏫ Run rclone/r2-store/assets" - uses: z-shell/.github/actions/rclone@v1.0.8 + uses: z-shell/.github/actions/rclone@5a24925e0cf2131910829d7763b3acbaf9bb0c3a with: config: ${{ secrets.R2_STORE }} args: "copy ${{ env.assets_local_path }} ${{ env.assets_remote_path }}"