Skip to content

Commit

Permalink
- fix output
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbahl committed Sep 10, 2024
1 parent bf86752 commit 9149e06
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- name: Check if PR author is an org member
id: check-member
uses: actions/[email protected]
uses: actions/[email protected] # Updated version to support Node 20
with:
script: |
const org = 'wpengine';
Expand All @@ -32,11 +32,13 @@ jobs:
}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
outputs:
isMember: ${{ steps.check-member.outputs.isMember }}

# Set an output for the job based on the result of the membership check
- name: Set output for isMember
run: echo "isMember=${{ steps.check-member.outputs.isMember }}" >> $GITHUB_ENV

- name: Skip if not an org member
if: steps.check-member.outputs.isMember == 'false'
if: env.isMember == 'false'
run: echo "Skipping workflow because PR author is not an org member" && exit 0

- uses: actions/checkout@v4
Expand Down

0 comments on commit 9149e06

Please sign in to comment.