-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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'; | ||
|
@@ -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 | ||
|