Skip to content
upload-cloud

GitHub Action

Auto Accept Collabs

v2.0.0 Latest version

Auto Accept Collabs

upload-cloud

Auto Accept Collabs

Github Action to auto accept all collaboration invites

Installation

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

              

- name: Auto Accept Collabs

uses: kbrashears5/github-action-auto-accept-collabs@v2.0.0

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

Choose a version

github-action-auto-accept-collabs

Github Action to auto accept all collaboration invites

version

Use Cases

Auto accept all collaboration invites. Useful for a bot account

Setup

Create a new file called /.github/workflows/auto-accept-collabs.yml that looks like so:

name: Auto Accept 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 Accept Collabs
        uses: kbrashears5/github-action-auto-accept-collabs@v1.0.0
        with:
          TOKEN: ${{ secrets.ACTIONS }}

Parameters

Parameter Required Description
TOKEN true Personal Access Token with Repo scope