mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2026-09-28 06:45:29 +00:00
ci: harden workflows and update Node.js (#686)
This commit is contained in:
@@ -6,11 +6,12 @@ on:
|
||||
|
||||
jobs:
|
||||
purge:
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-slim
|
||||
timeout-minutes: 5
|
||||
permissions: {}
|
||||
steps:
|
||||
|
||||
- run: >
|
||||
curl -sL https://github.com/${GITHUB_REPOSITORY} |
|
||||
grep -oE '<img src="https?://camo.githubusercontent.com/[^"]+' |
|
||||
sed -e 's/<img src="//' |
|
||||
xargs -I % curl -sX PURGE %
|
||||
- run: |
|
||||
curl -sL "https://github.com/${GITHUB_REPOSITORY}" |
|
||||
grep -oE '<img src="https?://camo.githubusercontent.com/[^"]+' |
|
||||
sed -e 's/<img src="//' |
|
||||
xargs -r -I % curl -sX PURGE %
|
||||
|
||||
Reference in New Issue
Block a user