Skip to content

GitHub Action to generate an organization's members list as JSON

License

Notifications You must be signed in to change notification settings

RITct/members-list-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Members-List-Actions

The members-list-actions is a GitHub Action that generates a list of all the members in an organization. Adding this action to your organization will generate a JSON file that updates itself each time a new member is added to the organization.

Getting Started

Create a main.yml file inside .github/workflows/ and add the following.

on:
  workflow_dispatch:
jobs:
  runs-on: ubuntu-latest
  name: Action to update the member's list
  steps:
    - name: Member List
      id: list-members
      uses: RITct/members-list-action@main
      with:
        org-name: <organization-name>
        file-path: 'members.json'
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

To add it to your to your existing workflow, append this to your current .yml workflow script.

-uses: RITct/members-list-action@main
 with:
   org-name: <organization-name>
   file-path: 'members.json'
   env:
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Don't forget to change the organization name.

Parameters

OPTION DEFAULT VALUE DESCRIPTION REQUIRED
org-name Organization Name true
file-path members.json JSON file path false
commit-user-name list-member-action Commit Username false
commit-user-email [email protected] Commit Email false
commit-msg changed members file Commit Message false

License

This project is licensed under the GNU GENERAL PUBLIC LICENSE - see the LICENSE file for details.

About

GitHub Action to generate an organization's members list as JSON

Resources

License

Stars

Watchers

Forks

Packages

No packages published