Skip to content
upload-cloud

GitHub Action

Auto Create Collabs

1.0.1 Latest version

Auto Create Collabs

upload-cloud

Auto Create Collabs

Github Action to auto create collaboration invites across repositories

Installation

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

              

- name: Auto Create Collabs

uses: kbrashears5/github-action-auto-create-collabs@1.0.1

Learn more about this action in kbrashears5/github-action-auto-create-collabs

Choose a version

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