Skip to content

Commit 9831412

Browse files
committed
fix(ci): always run full build on tag pushes
Tag pushes were skipped because change detection compares tag against main branch, finding no diff when the tag is created directly on main. This caused the Release job dependency (build-and-test) to be skipped, resulting in no artifacts being uploaded. Fix: Always run build-and-test and integration-tests jobs on tag pushes, bypassing change detection.
1 parent 69070d5 commit 9831412

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
build-and-test:
5959
name: Build and Test
6060
needs: changes
61-
if: needs.changes.outputs.has-source == 'true'
61+
if: needs.changes.outputs.has-source == 'true' || startsWith(github.ref, 'refs/tags/v')
6262
runs-on: ubuntu-latest
6363
container:
6464
image: ghcr.io/${{ github.repository }}-ci-debian:latest
@@ -248,8 +248,8 @@ jobs:
248248
# 1. Pull requests (fast iteration - coverage runs only on main branch)
249249
# 2. Release tags (fast validation before release)
250250
if: |
251-
needs.changes.outputs.needs-integration == 'true' &&
252-
(github.event_name == 'pull_request' || startsWith(github.ref, 'refs/tags/'))
251+
(needs.changes.outputs.needs-integration == 'true' && github.event_name == 'pull_request') ||
252+
startsWith(github.ref, 'refs/tags/')
253253
timeout-minutes: 20
254254
strategy:
255255
fail-fast: false

0 commit comments

Comments
 (0)