Skip to content

Commit 4e6f782

Browse files
gHashTagona-agent
andcommitted
ci: Fix tag filtering to prevent workflow conflicts
Tag conventions: - ext-v* → Extension Release workflow only - compiler-v* → Compiler Release workflow - v* → Main Build & Release (excludes ext-v* and compiler-v*) This prevents multiple workflows from triggering on the same tag and overwriting each other's release notes. Co-authored-by: Ona <no-reply@ona.com>
1 parent 3ddd0c7 commit 4e6f782

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/build-compiler-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
push:
99
tags:
1010
- 'v*'
11+
- 'compiler-v*'
12+
- '!ext-v*'
1113
workflow_dispatch:
1214

1315
env:

.github/workflows/build-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
push:
99
tags:
1010
- 'v*'
11+
- '!ext-v*'
12+
- '!compiler-v*'
1113
workflow_dispatch:
1214

1315
env:

.github/workflows/extension-release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# NeoDetect Extension Release Workflow
2-
# Triggers on version tags (v*) and creates GitHub Release with artifacts
2+
# Triggers on extension-specific tags (ext-v*) to avoid conflicts with other releases
33

44
name: Extension Release
55

66
on:
77
push:
88
tags:
9-
- 'v*'
9+
- 'ext-v*'
1010
workflow_dispatch:
1111
inputs:
1212
version:
@@ -31,10 +31,11 @@ jobs:
3131
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
3232
VERSION="${{ github.event.inputs.version }}"
3333
else
34-
VERSION="${GITHUB_REF#refs/tags/v}"
34+
# Remove ext-v prefix from tag (ext-v2.0.0 -> 2.0.0)
35+
VERSION="${GITHUB_REF#refs/tags/ext-v}"
3536
fi
3637
echo "version=$VERSION" >> $GITHUB_OUTPUT
37-
echo "Building version: $VERSION"
38+
echo "Building extension version: $VERSION"
3839
3940
- name: Setup Zig
4041
uses: goto-bus-stop/setup-zig@v2

0 commit comments

Comments
 (0)