Github Action to auto create collaboration invites across repositories
Auto create collaboration invites to the users specified to any new or old repositories. Useful for managing a team or for managing a second bot account
Create a new file called /.github/workflows/auto-create-collabs.yml
that looks like so:
name: Auto Create Collabs
on:
push:
branches:
- master
schedule:
- cron: 0 0 * * *
jobs:
file_sync:
runs-on: ubuntu-latest
steps:
- name: Fetching Local Repository
uses: actions/checkout@master
- name: Auto Create Collabs
uses: kbrashears5/github-action-auto-create-collabs@v1.0.0
with:
REPOSITORIES: |
username/repo@master
USERS: |
octocat
TOKEN: ${{ secrets.ACTIONS }}
Parameter | Required | Description |
---|---|---|
REPOSITORIES | true | List of repositories to create invites for. Blank will be all public repositories |
USERS | true | List of users to invite |
TOKEN | true | Personal Access Token with Repo scope |