Created
March 23, 2021 07:57
-
-
Save suubh/7b59a26b029e1676a1a519bff5dd4cf9 to your computer and use it in GitHub Desktop.
GitHub Action for Auto Invite in an Organization using Issues and Labels.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To see the working visit nit-ap .