Skip to content

Contributors List Updater #153

Contributors List Updater

Contributors List Updater #153

name: Contributors List Updater
on:
workflow_dispatch:
schedule:
- cron: "0 3 */2 * *"
permissions:
contents: read
jobs:
sync-contributors:
name: Contributors List Updater
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
ref: ${{ github.event.repository.default_branch }}
- name: Generate Token
uses: tibdex/github-app-token@v2
id: generate-token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Update contributors list
uses: wow-actions/contributors-list@7422dfe4e4e265fd00b097a40cfc8403bf6b345b # v1.2.1
with:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
svgPath: .github/assets/CONTRIBUTORS.svg
round: true
includeBots: false
noCommit: true
- name: Commit & PR
uses: peter-evans/create-pull-request@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f # v7.0.6
with:
token: ${{ steps.generate-token.outputs.token }}
add-paths: .github/assets/CONTRIBUTORS.svg
commit-message: "chore: update contributors-list"
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
branch: workflow/update-contributors-list
base: main
delete-branch: true
title: "chore: update contributors-list"
body: |
Automated update to `.github/assets/CONTRIBUTORS.svg`