Created
November 8, 2023 14:03
-
-
Save sunnamed434/111dbe29c8c40607eaa5bc22339324db to your computer and use it in GitHub Desktop.
Delete all artifacts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'artifacts cleanup' | |
on: push | |
jobs: | |
delete-artifacts: | |
permissions: write-all | |
environment: dev | |
runs-on: ubuntu-latest | |
steps: | |
- uses: kolpav/purge-artifacts-action@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
expire-in: 7days # Setting this to 0 will delete all artifacts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment