github-action-org-contributors

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2023 License: MIT Imports: 10 Imported by: 0

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

Parameter Type Default Required Description
org string - Y The organization name.
output string - Y The 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'

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL