Skip to content

Commit 7e54eb2

Browse files
committed
Updating CI/CD workflows for version release
Signed-off-by: S3B4SZ17 <[email protected]>
1 parent 88d5ab2 commit 7e54eb2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/publish.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ jobs:
8585
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8686
WITH_V: true
8787
DEFAULT_BUMP: "patch"
88-
TAG_CONTEXT: 'repo'
88+
TAG_CONTEXT: ${{ (github.base_ref != 'main') && 'branch' || 'repo' }}
8989
PRERELEASE_SUFFIX: "beta"
90-
PRERELEASE: true
90+
PRERELEASE: ${{ (github.base_ref != 'main') && 'true' || 'false' }}
9191
DRY_RUN: true
9292

9393
- name: Summary

.github/workflows/test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ jobs:
6262
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6363
WITH_V: true
6464
DEFAULT_BUMP: "patch"
65-
TAG_CONTEXT: 'repo'
65+
TAG_CONTEXT: ${{ (github.base_ref != 'main') && 'branch' || 'repo' }}
6666
PRERELEASE_SUFFIX: "beta"
67-
PRERELEASE: true
67+
PRERELEASE: ${{ (github.base_ref != 'main') && 'true' || 'false' }}
6868
DRY_RUN: true
6969

7070
- name: Compare versions

0 commit comments

Comments
 (0)