From 3514e583e097f611f785e9d24c53b9bb996da3f4 Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Sun, 8 Dec 2019 17:30:38 +0900 Subject: [PATCH] gha: Add workflow to purge readme image cache --- .github/workflows/purge-readme-image-cache.yml | 17 +++++++++++++++++ 1 file changed, 17 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..57762ce --- /dev/null +++ b/.github/workflows/purge-readme-image-cache.yml @@ -0,0 +1,17 @@ +name: Purge image cache + +on: + push: + schedule: + - cron: '54 18 * * *' + +jobs: + purge: + runs-on: ubuntu-18.04 + steps: + + - run: | + IMAGE_LIST=$(curl -sL https://github.com/${GITHUB_REPOSITORY} | \ + grep -oE '