Skip to content

Commit c467236

Browse files
authored
Merge pull request Expensify#81083 from Expensify/Rory-DontDeployIfNotDeployer
[No QA] Don't try to deploy the app if not app deployer
2 parents 58e3d08 + 30a486e commit c467236

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/preDeploy.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,12 @@ jobs:
5858

5959
- name: Check if merged pull request should trigger a deploy
6060
id: shouldDeploy
61-
run: echo "SHOULD_DEPLOY=${{ (!fromJSON(steps.isStagingDeployLocked.outputs.IS_LOCKED) && github.actor != 'OSBotify') }}" >> "$GITHUB_OUTPUT"
61+
run: |
62+
if gh api /orgs/Expensify/teams/mobile-deployers/memberships/${{ github.actor }} --silent; then
63+
echo "SHOULD_DEPLOY=${{ (!fromJSON(steps.isStagingDeployLocked.outputs.IS_LOCKED) && github.actor != 'OSBotify') }}" >> "$GITHUB_OUTPUT"
64+
else
65+
echo "SHOULD_DEPLOY=false" >> "$GITHUB_OUTPUT"
66+
fi
6267
6368
skipDeploy:
6469
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)