Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
penalosa committed Nov 20, 2024
1 parent 31e6602 commit bb43eb0
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/run-ci-for-external-forks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,20 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
# - name: Check user for team affiliation
# uses: tspascoal/get-user-teams-membership@v2
# id: teamAffiliation
# with:
# GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
# username: ${{ github.actor }}
# team: wrangler
# - name: Stop workflow if user is not a team member
# if: ${{ steps.teamAffiliation.outputs.isTeamMember == false }}
# run: |
# echo "You have must be on the "wrangler" team to trigger this job."
# exit 1

- name: Check user for team affiliation
uses: tspascoal/get-user-teams-membership@v2
id: teamAffiliation
with:
GITHUB_TOKEN: ${{ secrets.READ_ONLY_ORG_GITHUB_TOKEN }}
username: ${{ github.actor }}
team: wrangler

- name: Stop workflow if user is not a team member
if: ${{ steps.teamAffiliation.outputs.isTeamMember == false }}
run: |
echo "You have must be on the "wrangler" team to trigger this job."
exit 1
- name: "Checkout PR"
run: gh pr checkout ${{ inputs.pr-number }} -b run-ci-on-behalf-of-${{ inputs.pr-number }} -f
Expand Down

0 comments on commit bb43eb0

Please sign in to comment.