Organization Contributors #1968
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: Organization Contributors | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 */6 * * *' | |
jobs: | |
contributors: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
name: Update contributors | |
steps: | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- name: Get contributors | |
uses: razonyang/github-org-contributors-action@main | |
id: contributors | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
org: 'hbstack' | |
output: 'data/contributors.toml' | |
- name: Commit contributors | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "chore: update contributors" | |
commit_author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" | |
file_pattern: 'data/contributors.toml' |