mirror of
https://github.com/nexu-io/open-design.git
synced 2026-06-01 03:14:35 +07:00
Refresh contributors wall daily (#294)
* docs(readme): refresh contributors wall daily * docs(readme): refresh contributors wall daily Generated-By: looper 0.2.7 (runner=fixer, agent=gpt-5.5)
This commit is contained in:
parent
569f280a0d
commit
ba4055e804
1 changed files with 43 additions and 0 deletions
43
.github/workflows/refresh-contributors-wall.yml
vendored
Normal file
43
.github/workflows/refresh-contributors-wall.yml
vendored
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
name: refresh-contributors-wall
|
||||
|
||||
on:
|
||||
# Daily refresh keeps the contributors wall CDN cache moving even when
|
||||
# contributor data changes outside pull request merges.
|
||||
schedule:
|
||||
- cron: '0 1 * * *'
|
||||
# Manual trigger: Use when you need to force-refresh the contributors wall
|
||||
# outside the daily schedule (e.g., after a bulk contributor update or
|
||||
# after fixing the cache_bust pattern in README files).
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
concurrency:
|
||||
group: refresh-contributors-wall
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
refresh:
|
||||
name: Refresh contributors wall cache bust
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6.0.2
|
||||
|
||||
- name: Refresh cache bust date
|
||||
run: |
|
||||
DATE="$(date -u +%F)"
|
||||
MATCHES="$(perl -0ne '$count += () = /cache_bust=\d{4}-\d{2}-\d{2}/g; END { print $count + 0 }' README*.md)"
|
||||
if [ "$MATCHES" -eq 0 ]; then
|
||||
echo "Warning: No cache_bust patterns found. README format may have changed."
|
||||
exit 1
|
||||
fi
|
||||
perl -0pi -e "s/cache_bust=\d{4}-\d{2}-\d{2}/cache_bust=$DATE/g" README*.md
|
||||
|
||||
- name: Commit changes
|
||||
uses: stefanzweifel/git-auto-commit-action@v6
|
||||
with:
|
||||
commit_message: 'docs(readme): refresh contributors wall'
|
||||
file_pattern: 'README*.md'
|
||||
Loading…
Reference in a new issue