Skip to content

Update organization profile #18

Update organization profile

Update organization profile #18

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