Is Org Member #12
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: Is Organization Member Example | |
on: | |
issues: | |
types: [opened, labeled] | |
jobs: | |
is-member: | |
name: Is org member? | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check if organization member | |
id: is_organization_member | |
if: github.event.action == 'opened' | |
uses: zuchka/[email protected] | |
with: | |
org: railwayapp | |
username: ${{ github.event.issue.user.login }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Comment on issue for external | |
if: | | |
steps.is_organization_member.outputs.result != 'true' | |
uses: jd-0001/[email protected] | |
with: | |
message: 'Welcome to the repo EXTERNAL person :)' | |
- name: Comment on issue for external | |
if: | | |
steps.is_organization_member.outputs.result == 'true' | |
uses: jd-0001/[email protected] | |
with: | |
message: 'Welcome to the repo INTERNAL person :)' |