Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update external-contributors.yml #391

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 27 additions & 9 deletions .github/workflows/external-contributors.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Is Organization Member Example
name: Is Org Member

on:
issues:
types: [opened, labeled]
pull_request:
types: [opened, labeled]

jobs:
is-member:
Expand All @@ -12,12 +14,28 @@ jobs:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Check if organization member
id: is_organization_member
uses: zuchka/[email protected]
- name: Is org member?
id: is_org_member
uses: zuchka/[email protected]
env:
GITHUB_ISSUE_URL: ${{ toJson(github.event.issue.html_url) }}
GITHUB_REPO: ${{ toJson(github.repository) }}
GITHUB_EVENT_NAME: ${{ toJson(github.event_name) }}
with:
username: foo
teammates: 20k-ultra|char8|coffee-cup|dbanys|FarazPatankar|gschier|half0wl|JakeCooper|jitachi|melissa-hale|ndneighbor|ohrgaard|pierre-borckmans|railway-bot|tacLog|trif0lium|zuchka
webhook: https://discord.com/api/webhooks/886039948032090152/TN0AU9rQs3bzWfIR-enPZp9xAW2XeOzYiCQH4Y_W6MX-ABjKaKzsJOTp_psayU_Z8H-f
- name: Add label
uses: actions-ecosystem/action-add-labels@v1
if: ${{ steps.is_org_member.outputs.result == 'false' }}
with:
labels: community
- name: Add initial comment
uses: actions-ecosystem/action-create-comment@v1
if: ${{ steps.is_org_member.outputs.result == 'false' }}
with:
org: railwayapp
username: zuchka
token: ${{ secrets.GITHUB_TOKEN }}
- name: Create Comment for external
run: echo "${{ steps.is_organization_member.outputs.result}}"
github_token: ${{ secrets.github_token }}
body: |
Hello, @${{ github.actor }}! Thanks for your submission.
Our team will respond soon. If you need more immediate help, try our Forum or our Discord. Thanks!
Loading