From 1c2337afb819d314e7d076a91951184103b81420 Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Sat, 4 Apr 2020 10:07:17 -0400 Subject: [PATCH] purge old action artifacts nightly [skip ci] --- .github/workflows/ci.yml | 1 + .github/workflows/purge-artifacts.yml | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 .github/workflows/purge-artifacts.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c9035a32..c26d5e56 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/purge-artifacts.yml b/.github/workflows/purge-artifacts.yml new file mode 100644 index 00000000..d4890b32 --- /dev/null +++ b/.github/workflows/purge-artifacts.yml @@ -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