codingpot / github-org-member-manage-action

https://github.com/marketplace/actions/github-org-member-manage-action
Apache License 2.0
7 stars 2 forks source link
github-actions hacktoberfest

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