Skip to content

Please invite me to the GitHub Community Organization #619

Please invite me to the GitHub Community Organization

Please invite me to the GitHub Community Organization #619

Workflow file for this run

on:
issues:
types: [labeled]
jobs:
Broadcast:
if: ${{ github.event.label.name == 'Invitation' }}
runs-on: ubuntu-latest
steps:
- name: Issue Parser
uses: stefanbuck/github-issue-parser@v2
id: issue-parser
with:
template-path: .github/ISSUE_TEMPLATE/invitation.yml
- name : Mail Parsing
id: mail
run: |
JSON=`echo '${{ steps.issue-parser.outputs.jsonString }}'`
mail=`echo $(jq -r '.smail_id' <<< "$JSON")`
echo "::set-output name=mail::$(echo $mail)"
- name: Send mail
uses: dawidd6/action-send-mail@v3
with:
server_address: smtp.gmail.com
server_port: 465
username: ${{SECRETS.EMAIL}}
password: ${{SECRETS.PASSWORD}}
subject: Thanks for joining
to: ${{steps.mail.outputs.mail}}
from: GitHub Campus Expert
body: ${{SECRETS.INVITATION_MAIL}}
secure: true
ignore_cert: true
convert_markdown: true
priority: low
- name: invite-on-label
uses: vj-abigo/[email protected]
with:
organization: GitHub-Campus-IITM
label: Invitation
repo-token: ${{ secrets.GITHUB_TOKEN }}
comment: "<b>Invitation sent to join the GitHub Organisation. Welcome to the community 🎉</b><br>Please check your email to get the invitation link<br>Don't forget to make it public after accepting so it appears on your GitHub profile for everyone else to see."
env:
INVITE_TOKEN: ${{ secrets.INVITE_TOKEN }}