Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thomass-dev committed Dec 30, 2024
1 parent 39a51bb commit b799d0b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/pr-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
if: always()
runs-on: ubuntu-latest
continue-on-error: true
permissions: write-all
steps:
- name: Clean artifacts
run: |
Expand All @@ -41,12 +42,12 @@ jobs:
--silent \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/${OWNER}/${REPOSITORY}/actions/artifacts/${ID}
/repos/${REPOSITORY_OWNER}/${REPOSITORY_NAME}/actions/artifacts/${ID}
done
env:
GH_TOKEN: ${{ github.token }}
OWNER: ${{ github.repository_owner }}
REPOSITORY: ${{ github.repository.name }}
REPOSITORY_OWNER: ${{ github.repository_owner }}
REPOSITORY_NAME: ${{ github.event.repository.name }}
BRANCH: ${{ github.head_ref }}

clean-documentation-preview:
Expand All @@ -59,8 +60,8 @@ jobs:
set -eu
sudo apt-get update
sudo apt-get install -y rclone
echo "${{ inputs.CONFIGURATION }}" > rclone.configuration
rclone --config rclone.configuration prune ${PROVIDER}:${BUCKET}/${PULL_REQUEST_NUMBER}/
echo "${CONFIGURATION}" > rclone.configuration
rclone --config rclone.configuration purge ${PROVIDER}:${BUCKET}/${PULL_REQUEST_NUMBER}/
env:
CONFIGURATION: ${{ secrets.RCLONE_CONFIG_DOC_PREVIEW }}
PROVIDER: scaleway
Expand Down

0 comments on commit b799d0b

Please sign in to comment.