From fb5c156e4345960d28964fb5b60238bc527382a7 Mon Sep 17 00:00:00 2001 From: Xicri <107226297+xicri@users.noreply.github.com> Date: Sat, 3 Aug 2024 07:05:05 +0900 Subject: [PATCH 1/2] ci: fix GitHub Action to purge Cloudflare CDN cache --- .github/workflows/purge-cache.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/purge-cache.yaml b/.github/workflows/purge-cache.yaml index 5a03f7e2..46f677ff 100644 --- a/.github/workflows/purge-cache.yaml +++ b/.github/workflows/purge-cache.yaml @@ -15,6 +15,12 @@ jobs: CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 22 + cache: npm + - name: Purge cache of Cloudflare CDN run: | npm install esno undici From c9bd5a186db7d67d8ec58603816ec54746b4665e Mon Sep 17 00:00:00 2001 From: Xicri <107226297+xicri@users.noreply.github.com> Date: Sat, 3 Aug 2024 07:12:32 +0900 Subject: [PATCH 2/2] ci: remove unnecessary `types` of `pull_request` --- .github/workflows/main.yaml | 5 ----- .github/workflows/vrt.yaml | 5 ----- 2 files changed, 10 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 0b8dd675..c9b19d73 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -4,11 +4,6 @@ on: pull_request: branches: - main - types: - - opened - - edited - - reopened - - synchronize push: branches: - main diff --git a/.github/workflows/vrt.yaml b/.github/workflows/vrt.yaml index 8073bdad..1673c72f 100644 --- a/.github/workflows/vrt.yaml +++ b/.github/workflows/vrt.yaml @@ -4,11 +4,6 @@ on: pull_request: branches: - main - types: - - opened - - edited - - reopened - - synchronize jobs: vrt: