diff --git a/.github/workflows/external_pr_labeler.yml b/.github/workflows/external_pr_labeler.yml new file mode 100644 index 000000000000..2f4b6178b6ae --- /dev/null +++ b/.github/workflows/external_pr_labeler.yml @@ -0,0 +1,29 @@ +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/is-organization-member@1.0.1 + with: + organization: uyuni-project + username: ${{ github.actor }} + token: ${{ secrets.GITHUB_TOKEN }} + - name: Report + run: | + echo "Actor: ${{ github.actor }}" + echo "Is a member? ${{ steps.is_member.outputs.result }}" +# - uses: tspascoal/get-user-teams-membership@v2 +# with: +# username: ${{ github.actor }} +# team: 'uyuni-project' +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}