Merge branch 'main' into star-history #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Image List | |
permissions: write-all | |
on: | |
push: | |
paths: | |
- "**.png" | |
- "docs/README*" | |
- "docs/scripts/**" | |
workflow_dispatch: | |
jobs: | |
update-readme: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
submodules: true | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: latest | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: pnpm | |
- uses: pdm-project/setup-pdm@v3 | |
with: | |
cache: true | |
- name: Run Job | |
run: |- | |
pdm install | |
pdm run generate | |
pnpm i | |
pnpm format | |
if [[ -n "$(git status -s)" ]]; then | |
git add . | |
git config user.name github-actions[bot] | |
git config user.email github-actions[bot]@users.noreply.github.com | |
git commit -m "docs: update image list [skip ci]" | |
git push | |
else | |
echo "No changes detected." | |
fi |