fork of hey-api/openapi-ts because I need some additional things
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: ${{ matrix.os }}
11 strategy:
12 matrix:
13 os: [ubuntu-latest]
14 steps:
15 - uses: actions/checkout@v6.0.1
16
17 - name: Install dependencies
18 run: sudo apt-get update && sudo apt-get install -y jq curl
19
20 - name: Run update contributors script
21 env:
22 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23 run: |
24 chmod +x ./scripts/update-contributors.sh
25 ./scripts/update-contributors.sh
26
27 - name: Commit and push if updated
28 run: |
29 git config user.name "github-actions[bot]"
30 git config user.email "github-actions[bot]@users.noreply.github.com"
31 git add ./docs/partials/contributors-list.md
32 git diff --cached --quiet || git commit -m "chore(docs): update contributors list"
33 git push