Skip to content

Instantly share code, notes, and snippets.

@suubh
Created March 23, 2021 07:57
Show Gist options
  • Save suubh/7b59a26b029e1676a1a519bff5dd4cf9 to your computer and use it in GitHub Desktop.
Save suubh/7b59a26b029e1676a1a519bff5dd4cf9 to your computer and use it in GitHub Desktop.
GitHub Action for Auto Invite in an Organization using Issues and Labels.
on:
issues:
types: [labeled]
jobs:
automate_invite:
runs-on: ubuntu-latest
steps:
- name: Invite on label
uses: vj-abigo/[email protected]
with:
organization: nit-ap # YOUR ORGANIZATION NAME OR REPO NAME WHERE ISSUE IS GENERATED.
label: invite me to the organisation # NAME OF YOUR LABEL ,ATTACHED TO THE ISSUE .
repo-token: ${{ secrets.GITHUB_TOKEN }}
comment: '<b>Invitation sent for the Github Organisation, please check your mail. Welcome to the NIT Arunachal Developer club🎉</b>'
env:
INVITE_TOKEN: ${{ secrets.INVITE_TOKEN }} # CREATE A TOKEN IN YOUR PROFILE AND PASTE THE TOKEN IN ORG SETTINGS .
@suubh
Copy link
Author

suubh commented Mar 23, 2021

To see the working visit nit-ap .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment