Skip to content

Trigger PR labeler action #3

Trigger PR labeler action

Trigger PR labeler action #3

name: External PR labeler
on:
pull_request_target:
# types:
# - opened
permissions:
pull-requests: write
jobs:
label_prs:
name: Label external PRs
runs-on: ubuntu-latest
steps:
- id: is_member
name: Check if author is an org member
uses: jamessingleton/is-organization-member@v1
with:
organization: uyuni-project
username: ${{ github.actor }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Report
if: steps.is_member.outputs.result == true
run: echo "Is a member"
- name: Report false
if: steps.is_member.outputs.result == false
run: echo "Not a member"
# - uses: tspascoal/get-user-teams-membership@v2
# with:
# username: ${{ github.actor }}
# team: 'uyuni-project'
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}