Please invite me to the GSSoC24 GitHub Community Organization #11
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
name: Automate Invitation | |
permissions: | |
issues: write | |
on: | |
issues: | |
types: [labeled] | |
jobs: | |
handle_label: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check if Label is 'invite me to the community' | |
id: check_label | |
run: | | |
if [[ "${{ github.event.label.name }}" != "invite me to the community" ]]; then | |
echo "Label is not 'invite me to the community'. Exiting." | |
exit 0 | |
fi | |
- name: Invite on Label | |
if: ${{ steps.check_label.outcome == 'success' }} | |
uses: vj-abigo/[email protected] | |
with: | |
organization: GSSoC24 | |
label: invite me to the community | |
repo-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
comment: | | |
<b>Invitation sent to join the GitHub Organisation. Welcome to the community 🎉</b><br><br> | |
Don't forget after accepting to make it public so it appears on your GitHub profile for everyone else to see. You can do this by finding your name in the GitHub organisation list and change the dropdown to public https://github.com/orgs/GSSoC24/people<br><br> | |
env: | |
INVITE_TOKEN: ${{ secrets.INVITE_TOKEN }} |