feat: add README auto-updater workflow and cache input to setup-bazel
Update README Actions Table / update-readme (push) Failing after 28s
Update README Actions Table / update-readme (push) Failing after 28s
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
name: Update README Actions Table
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["main", "master"]
|
||||
paths:
|
||||
- '**/action.yml'
|
||||
- '**/action.yaml'
|
||||
- 'scripts/update-readme.py'
|
||||
|
||||
jobs:
|
||||
update-readme:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.x'
|
||||
|
||||
- name: Update README table
|
||||
run: |
|
||||
chmod +x scripts/update-readme.py
|
||||
./scripts/update-readme.py
|
||||
|
||||
- name: Commit and Push changes
|
||||
run: |
|
||||
git config --global user.name "Gitea Actions"
|
||||
git config --global user.email "actions@gitea.local"
|
||||
git add README.md
|
||||
if ! git diff-index --quiet HEAD; then
|
||||
git commit -m "docs: auto-update README actions table [skip ci]"
|
||||
git push origin HEAD:${{ github.ref_name }}
|
||||
else
|
||||
echo "No changes to commit"
|
||||
fi
|
||||
Reference in New Issue
Block a user