fork of hey-api/openapi-ts because I need some additional things
at feat/skip-token 30 lines 887 B view raw
1name: Update Contributors 2 3on: 4 schedule: 5 - cron: '0 0 * * *' # Every day at 00:00 UTC 6 workflow_dispatch: 7 8jobs: 9 update: 10 runs-on: ubuntu-latest 11 steps: 12 - uses: actions/checkout@v6.0.2 13 14 - name: Install dependencies 15 run: sudo apt-get update && sudo apt-get install -y jq curl 16 17 - name: Run update contributors script 18 env: 19 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 20 run: | 21 chmod +x ./scripts/update-contributors.sh 22 ./scripts/update-contributors.sh 23 24 - name: Commit and push if updated 25 run: | 26 git config user.name "github-actions[bot]" 27 git config user.email "github-actions[bot]@users.noreply.github.com" 28 git add ./docs/partials/contributors-list.md 29 git diff --cached --quiet || git commit -m "chore(docs): update contributors list" 30 git push