Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions .github/workflows/testBuildHybrid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,15 @@ jobs:
uses: actions/checkout@v4

- name: Validate that user is an Expensify employee
if: ${{ github.event_name == 'workflow_dispatch' }}
if: ${{ inputs.APP_REF == '' }}
uses: ./.github/actions/composite/validateActor
with:
REQUIRE_APP_DEPLOYER: false
OS_BOTIFY_TOKEN: ${{ secrets.OS_BOTIFY_COMMIT_TOKEN }}

- name: Validate input
if: ${{ inputs.APP_REF == '' }}
run: |
if [[ "${{ github.event_name }}" == "workflow_call" ]]; then
exit 0
fi

if [[ -z "${{ github.event.inputs.APP_PULL_REQUEST_NUMBER }}" && -z "${{ github.event.inputs.HYBRIDAPP_PULL_REQUEST_NUMBER }}" ]]; then
echo "Invalid input. You have to pass at least one PR number"
exit 1
Expand All @@ -76,7 +73,7 @@ jobs:
run: |
set -e

if [[ "${{ github.event_name }}" == "workflow_call " ]]; then
if [[ ! -z "${{ inputs.APP_REF }}" ]]; then
echo "REF=${{ inputs.APP_REF }}" >> "$GITHUB_OUTPUT"
exit 0
fi
Expand Down