mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-10-27 10:25:50 -04:00
purge old action artifacts nightly
[skip ci]
This commit is contained in:
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@@ -81,6 +81,7 @@ jobs:
|
|||||||
- run: |
|
- run: |
|
||||||
yarn install --no-ignore-optional --frozen-lockfile
|
yarn install --no-ignore-optional --frozen-lockfile
|
||||||
yarn build:preview
|
yarn build:preview
|
||||||
|
yarn optimize:emoji
|
||||||
- run: yarn lint
|
- run: yarn lint
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
- name: Include .percy.yml in artifact
|
- name: Include .percy.yml in artifact
|
||||||
|
|||||||
14
.github/workflows/purge-artifacts.yml
vendored
Normal file
14
.github/workflows/purge-artifacts.yml
vendored
Normal 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
|
||||||
Reference in New Issue
Block a user