Skip to content

Update org profile

Update org profile #6

name: Update org profile
on:
schedule:
- cron: "0 3 * * *"
workflow_dispatch: {}
permissions:
contents: write
jobs:
update-profile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
- name: Generate profile
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_ORG: meshmy
run: node .github/scripts/generate-profile.mjs
- name: Commit changes
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add profile/
git diff --staged --quiet || git commit -m "chore: refresh org activity"
git push