Skip to content

Commit 0e5f6e2

Browse files
committed
dkms-build.yml: Hard-fail version drift only in tag builds
1 parent 7aa1b9f commit 0e5f6e2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/dkms-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,14 @@ jobs:
9999
echo "Packaging version: ${PACKAGING}"
100100
echo "Upstream version: ${UPSTREAM}"
101101
102-
# Version drift is expected on PR runs, not in release builds
102+
# Version drift is expected until release, so only branch builds allow it
103103
- name: Build source + binary package in a clean container
104104
id: build
105105
env:
106106
IMAGE: ${{ inputs.container-image }}
107107
PKG: ${{ steps.version.outputs.package }}
108108
UPSTREAM: ${{ steps.version.outputs.upstream }}
109-
DRIFT_GUARD: ${{ github.event_name == 'pull_request' && 'warn' || 'fail' }}
109+
DRIFT_GUARD: ${{ github.ref_type == 'branch' && 'warn' || 'fail' }}
110110
run: |
111111
set -euo pipefail
112112
docker run --rm -e PKG -e UPSTREAM -e DRIFT_GUARD \

0 commit comments

Comments
 (0)