Update organization profile #21
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 organization profile | |
| on: | |
| schedule: | |
| - cron: "17 5 * * *" | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| concurrency: | |
| group: update-organization-profile | |
| cancel-in-progress: true | |
| jobs: | |
| update: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out profile repository | |
| uses: actions/checkout@v5 | |
| - name: Refresh project index | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GITHUB_ORGANIZATION: nmorgowicz-org | |
| run: node scripts/update-profile.mjs | |
| - name: Commit updated profile | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add profile/README.md | |
| if git diff --cached --quiet; then | |
| echo "No profile changes to commit." | |
| exit 0 | |
| fi | |
| git commit -m "chore: refresh organization project index" | |
| git push origin HEAD:main |