Skip to content

Commit

Permalink
setup env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
glebashnik committed Aug 13, 2024
1 parent daf535c commit 2086f6b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/delete-old-versions-in-archive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ on:
schedule:
- cron: '0 6 * * *'



jobs:
delete-old-versions-in-archive:
runs-on: ubuntu-latest
Expand All @@ -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

0 comments on commit 2086f6b

Please sign in to comment.