Skip to content
at-sign

GitHub Action

GitHub Org Member Manage Action

v1.3.1 Latest version

GitHub Org Member Manage Action

at-sign

GitHub Org Member Manage Action

Manage GitHub org memberships in a declarative way

Installation

Copy and paste the following snippet into your .yml file.

              

- name: GitHub Org Member Manage Action

uses: codingpot/github-org-member-manage-action@v1.3.1

Learn more about this action in codingpot/github-org-member-manage-action

Choose a version

github-org-member-manage-action

Objective

Mange GitHub org memberships in a declarative way (.yaml). YAML will be the single source of truth for the org memberships.

# members.yaml
org_name: codingpot

admins:
  - kkweon
  - kkweon2

members:
  - deepdiver1
  - deepdiver2

How to use

steps:
  - uses: "codingpot/github-org-member-manage-action@v1"
    with:
      gh_token: ${{ secrets.GH_TOKEN }} # (required) Needs admin:org permission
      members_filepath: members.yaml # (optional)
      dry_run: false # (optional)
      mode: sync # (optional) write or sync