chore(deps): update actions/checkout digest to 11bd719 (#230) #487
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: Generate README.md | |
on: | |
push: | |
branches: | |
- main | |
- master | |
pull_request: | |
branches: | |
- main | |
- master | |
# workflows/*.yml 以下のファイルを取得し、### add-reviewer.yml\n\n```\nmkdir -p .github/workflows ; wget -O .github/workflows/add-reviewer.yml https://raw.githubusercontent.com/book000/templates/master/workflows/add-reviewer.yml\n``` のようにする | |
# .github/templates.md を取得し、 <!-- templates --> に挿入する | |
# README.md に書き込む | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Install dependencies | |
run: | | |
yarn add js-yaml | |
- name: Generate readme | |
run: | | |
node scripts/generate-readme.js | |
- name: Commit and push | |
if: github.event_name == 'push' | |
run: | | |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git add README.md && \ | |
git commit -m "feat: Update README.md" && \ | |
git push || \ | |
true | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
if: github.event_name == 'pull_request' | |
with: | |
name: README.md | |
path: README.md |