Organization Contributors #2250
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@v4 | |
- name: Get contributors | |
uses: razonyang/github-org-contributors-action@main | |
id: contributors | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
org: 'hugomods' | |
output: 'common/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: 'common/data/contributors.toml' |