Skip to content

Instantly share code, notes, and snippets.

@sunnamed434
Created November 8, 2023 14:03
Show Gist options
  • Save sunnamed434/111dbe29c8c40607eaa5bc22339324db to your computer and use it in GitHub Desktop.
Save sunnamed434/111dbe29c8c40607eaa5bc22339324db to your computer and use it in GitHub Desktop.
Delete all artifacts
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