Skip to content

Trigger PR labeler action #5

Trigger PR labeler action

Trigger PR labeler action #5

name: External PR labeler
on:
pull_request_target:
# types:
# - opened
jobs:
label_prs:
name: Label external PRs
runs-on: ubuntu-latest
permissions: read-all
steps:
- id: is_member
name: Check if author is an org member
uses: jamessingleton/[email protected]
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 }}