mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2026-06-05 19:18:40 +02:00
9b7aa41d20
Pin workflow actions to commit SHAs, set explicit permissions and timeouts, update Ubuntu runners, and include the generated action bundle. Co-Authored-By: Codex <noreply@openai.com>
20 lines
427 B
YAML
20 lines
427 B
YAML
name: Purge image cache
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '4 18 * * */7'
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
purge:
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 5
|
|
steps:
|
|
- name: Purge README image cache
|
|
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 %
|