Skip to content

Latest commit

 

History

History
41 lines (36 loc) · 1.31 KB

File metadata and controls

41 lines (36 loc) · 1.31 KB

github-action-auto-create-collabs

Github Action to auto create collaboration invites across repositories

version

Use Cases

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

Setup

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 }}

Parameters

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