Skip to content

Commit d95cf2e

Browse files
committed
Moved conditional
1 parent b28228b commit d95cf2e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/build_test_push.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,6 @@ env:
5353
jobs:
5454
check-git:
5555
runs-on: ubuntu-latest
56-
# This will block all other jobs from running due to "needs"
57-
if: |
58-
${{ !inputs.skip_test || (
59-
github.repository == 'logicalclocks/rondb-docker' &&
60-
(startsWith(github.ref_name, 'release-') || github.ref_name == 'main')
61-
)}}
6256
outputs:
6357
is_highest_release: ${{ steps.is_highest_release.outputs.is_highest }}
6458
steps:
@@ -77,12 +71,18 @@ jobs:
7771
echo "Current branch is the highest release branch."
7872
echo "is_highest=true" >> $GITHUB_ENV
7973
else
74+
echo "Current branch is not the highest release branch."
8075
echo "is_highest=false" >> $GITHUB_ENV
8176
fi
8277
8378
build-test-push-x86:
8479
runs-on: ubuntu-latest
8580
needs: [check-git]
81+
if: |
82+
${{ !inputs.skip_test || (
83+
github.repository == 'logicalclocks/rondb-docker' &&
84+
(startsWith(github.ref_name, 'release-') || github.ref_name == 'main')
85+
)}}
8686
steps:
8787
- uses: actions/checkout@v4
8888

0 commit comments

Comments
 (0)