diff --git a/.github/workflows/delete-old-versions-in-archive.yml b/.github/workflows/delete-old-versions-in-archive.yml index 972d2f1d0e92..6bf47317c750 100644 --- a/.github/workflows/delete-old-versions-in-archive.yml +++ b/.github/workflows/delete-old-versions-in-archive.yml @@ -21,6 +21,8 @@ on: schedule: - cron: '0 6 * * *' + + jobs: delete-old-versions-in-archive: runs-on: ubuntu-latest @@ -33,4 +35,9 @@ jobs: - name: Run script in Fedora Docker container run: | - docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace fedora:latest bash .github/scripts/delete-old-cloudsmith-artifacts.sh + docker run --rm \ + -e SCREWDRIVER=1 \ + -e SD_PULL_REQUEST=$([[ "${{ github.event_name }}" == "pull_request" ]] && echo 1 || echo "") \ + -e CLOUDSMITH_API_KEY=${{ secrets.CLOUDSMITH_API_KEY }} \ + -v ${{ github.workspace }}:/workspace -w /workspace \ + fedora:latest bash .github/scripts/delete-old-cloudsmith-artifacts.sh