From da7c321b3b6fa57751ca958c4285e173842e173e Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Sun, 8 Dec 2019 17:21:16 +0900 Subject: [PATCH] gha: Add workflow to purge readme image cache --- .../workflows/purge-readme-image-cache.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/purge-readme-image-cache.yml diff --git a/.github/workflows/purge-readme-image-cache.yml b/.github/workflows/purge-readme-image-cache.yml new file mode 100644 index 0000000..11aa7f4 --- /dev/null +++ b/.github/workflows/purge-readme-image-cache.yml @@ -0,0 +1,19 @@ +name: Purge image cache + +on: + push: + branches: + - master + schedule: + - cron: '4 18 * * *' + +jobs: + purge: + runs-on: ubuntu-18.04 + steps: + + - run: | + IMAGE_LIST=$(curl -sL https://github.com/${GITHUB_REPOSITORY} | \ + grep -oE '