Skip to content

kbrashears5/github-action-auto-create-collabs

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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