Update profile README #26
This file contains hidden or 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 profile README | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "17 6 * * *" | |
| permissions: | |
| contents: write | |
| jobs: | |
| update-profile-readme: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Update public repository list | |
| run: node scripts/update-profile-readme.mjs | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Commit README changes | |
| run: | | |
| if git diff --quiet -- profile/README.md; then | |
| exit 0 | |
| fi | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add profile/README.md | |
| git commit -m "Update profile README repository list" | |
| git push |