1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-27 04:18:28 -04:00

purge old action artifacts nightly

[skip ci]
This commit is contained in:
Jake Jarvis 2020-04-04 10:07:17 -04:00
parent 236ee5b0af
commit 1c2337afb8
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39
2 changed files with 15 additions and 0 deletions

View File

@ -81,6 +81,7 @@ jobs:
- run: |
yarn install --no-ignore-optional --frozen-lockfile
yarn build:preview
yarn optimize:emoji
- run: yarn lint
continue-on-error: true
- name: Include .percy.yml in artifact

14
.github/workflows/purge-artifacts.yml vendored Normal file
View File

@ -0,0 +1,14 @@
name: Purge old artifacts
on:
schedule:
- cron: '0 9 * * *' # every day at 9 AM UTC = 5 AM EDT
jobs:
purge-artifacts:
runs-on: ubuntu-latest
steps:
- uses: kolpav/purge-artifacts-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
expire-in: 0