Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix if condition.
Browse files Browse the repository at this point in the history
dnzxy authored Jul 15, 2024
1 parent 0e83d85 commit 3d1d5d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build_loop.yml
Original file line number Diff line number Diff line change
@@ -120,11 +120,14 @@ jobs:

- name: Check if running on main or dev branch
id: check_branch
if: |
needs.check_alive_and_permissions.outputs.WORKFLOW_PERMISSION == 'true' &&
(vars.SCHEDULED_BUILD != 'false' || vars.SCHEDULED_SYNC != 'false')
run: |
if [ "${GITHUB_REF##*/}" = "main" ]; then
echo "Running on main branch"
echo "::set-output name=alive_branch::${ALIVE_BRANCH_MAIN}"
else if [ "${GITHUB_REF##*/}" = "dev" ]; then
elif [ "${GITHUB_REF##*/}" = "dev" ]; then
echo "Not running on dev branch"
echo "::set-output name=alive_branch::${ALIVE_BRANCH_DEV}"
else

0 comments on commit 3d1d5d8

Please sign in to comment.