Fix inverted logic for skipping non-native CI jobs on PRs. (#20087)
Austin S. Hemmelgarn committed
Apr 8, 2025 at 08:43 UTC
811014447ce90946c253fb14ff2c58f29ee2ace0
2 files changed
+4
-4
.github/workflows/build.yml
+2
-2
@@ -131,9 +131,9 @@ jobs:
131
run: |
132
if [ '${{ github.event_name }}' == 'pull_request' ]; then
133
if [ "${{ steps.check-static-build-files.outputs.any_modified }}" == "true" ] || [ "${{ !contains(github.event.pull_request.labels.*.name, 'run-ci/non-native') }}" = "true" ] || [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
134
- echo 'static-native=0' >> "${GITHUB_OUTPUT}"
135
- else
134
echo 'static-native=1' >> "${GITHUB_OUTPUT}"
135
+ else
136
+ echo 'static-native=0' >> "${GITHUB_OUTPUT}"
137
fi
138
else
139
echo 'static-native=0' >> "${GITHUB_OUTPUT}"
.github/workflows/docker.yml
+2
-2
@@ -143,9 +143,9 @@ jobs:
143
run: |
144
if [ '${{ github.event_name }}' == 'pull_request' ]; then
145
if [ "${{ steps.check-docker-files.outputs.any_modified }}" == "true" ] || [ "${{ !contains(github.event.pull_request.labels.*.name, 'run-ci/non-native') }}" = "true" ]; then
146
- echo 'docker-native=0' >> "${GITHUB_OUTPUT}"
147
- else
146
echo 'docker-native=1' >> "${GITHUB_OUTPUT}"
147
+ else
148
+ echo 'docker-native=0' >> "${GITHUB_OUTPUT}"
149
fi
150
else
151
echo 'docker-native=0' >> "${GITHUB_OUTPUT}"