Skip to content

Is Org Member

Is Org Member #12

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 :)'