Skip to content

Commit 3d983a8

Browse files
cursoragentechobt
andcommitted
fix(release): keep version-bump green when tag jobs skip
Co-authored-by: Mathis <echobt@users.noreply.github.com>
1 parent 27336dc commit 3d983a8

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

‎.github/workflows/version-bump.yml‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ name: Version Bump
66
on:
77
push:
88
branches: [main]
9+
paths:
10+
- VERSION_CLI
11+
- src/cortex-cli/VERSION
912
workflow_dispatch:
1013
inputs:
1114
action:
@@ -30,6 +33,17 @@ permissions:
3033
pull-requests: write
3134

3235
jobs:
36+
# Always-green job so skipped tag/PR jobs do not fail the workflow.
37+
gate:
38+
name: Workflow started
39+
runs-on: ubuntu-latest
40+
steps:
41+
- name: Note
42+
run: |
43+
echo "event=${{ github.event_name }}"
44+
echo "ref=${{ github.ref }}"
45+
echo "Tagging runs only for 'chore: bump version to …' merges or workflow_dispatch."
46+
3347
tag-on-version-bump-merge:
3448
name: Tag release on version-bump merge
3549
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)