Trigger PR labeler action #4
Workflow file for this run
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: 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/[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 }} |