diff --git a/.github/workflows/clean_artifacts.yml b/.github/workflows/clean_artifacts.yml new file mode 100644 index 0000000..73700e3 --- /dev/null +++ b/.github/workflows/clean_artifacts.yml @@ -0,0 +1,13 @@ +name: 'Delete old artifacts' +on: + schedule: + - cron: '0 * * * *' # every hour + +jobs: + delete-artifacts: + runs-on: ubuntu-latest + steps: + - uses: kolpav/purge-artifacts-action@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + expire-in: 0 # Setting this to 0 will delete all artifacts