Categorygithub.com/razonyang/github-action-org-contributors

# README

GitHub Organization Contributors Action

This action fetch contributors of a specified GitHub organization, and output to a file in YAML, TOML or JSON format.

Inputs

ParameterTypeDefaultRequiredDescription
orgstring-YThe organization name.
outputstring-YThe output filename, i.e. contributors.toml, contributors.yaml, contributors.json.

Example

on:
  workflow_dispatch:
  schedule:
    - cron: '0 */6 * * *'

jobs:
  contributors:
    permissions:
      contents: write
    runs-on: ubuntu-latest
    name: List contributors
    steps:
      - name: Checkout
        uses: actions/checkout@v3

      - name: Get contributors
        uses: razonyang/github-org-contributors-action@main
        id: contributors
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          org: 'hugomods'
          output: 'data/contributors.toml'

      - run: cat data/contributors.toml

      - uses: stefanzweifel/git-auto-commit-action@v4
        with:
          commit_message: "chore: update data/contributors.toml"
          file_pattern: 'data/contributors.toml'