update-contributors-svg #85
This file contains 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-contributors-svg | |
on: | |
workflow_dispatch: # Can trigger manually | |
schedule: | |
- cron: '0 1 * * *' # Schedule on everyday 1:00 | |
jobs: | |
update-svg: | |
name: Update contributors SVG | |
runs-on: ubuntu-latest # You can also try macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2.2.2 | |
with: | |
version: 7 | |
- name: Run SVG generation script | |
run: pnpx make-github-contributor-svg -t ${{ secrets.GH_TOKEN }} -o cortip -r isomera | |
- name: Commit | |
uses: EndBug/add-and-commit@v4 | |
with: | |
message: "chore(workflow): update contributors image" | |
add: ".github-contributors/*" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} |