File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ jobs:
102
102
TAG_CONTEXT : ' repo'
103
103
WITH_V : true
104
104
PRERELEASE_SUFFIX : " beta"
105
- PRERELEASE : ${{ (github.ref_name == 'beta') && 'true' || (github.ref_name == 'main') && 'false' || (github.ref_name == 'feat/cli-scanner-tool') && 'false' || 'true' }}
105
+ PRERELEASE : ${{ (github.base_ref || github. ref_name == 'beta') && 'true' || (github.base_ref || github. ref_name == 'main') && 'false' || (github.base_ref || github.ref_name == 'feat/cli-scanner-tool') && 'false' || 'true' }}
106
106
107
107
- name : Summary
108
108
run : |
Original file line number Diff line number Diff line change 65
65
TAG=v$(grep 'version =' pyproject.toml | sed -e 's/version = "\(.*\)"/\1/')
66
66
echo "TAG=$TAG" >> "$GITHUB_OUTPUT"
67
67
68
+ - name : Get branch ref name
69
+ id : branch_ref
70
+ run : |
71
+ BRANCH_NAME=${{ github.base_ref || github.ref_name }}
72
+ echo "$BRANCH_NAME"
73
+ echo "BRANCH_NAME=$BRANCH_NAME" >> "$GITHUB_OUTPUT"
74
+
68
75
- name : Get tag version
69
76
id : semantic_release
70
77
uses : anothrNick/github-tag-action@1.71.0
74
81
TAG_CONTEXT : ' repo'
75
82
WITH_V : true
76
83
PRERELEASE_SUFFIX : " beta"
77
- PRERELEASE : ${{ (github.base_ref == 'beta') && 'true' || (github.base_ref == 'main') && 'false' || (github.base_ref == 'integration') && 'false' || 'true' }}
84
+ PRERELEASE : ${{ (github.base_ref || github.ref_name == 'beta') && 'true' || (github.base_ref || github.ref_name == 'main') && 'false' || (github.base_ref || github.ref_name == 'integration') && 'false' || 'true' }}
78
85
DRY_RUN : true
79
86
80
87
- name : Compare versions
You can’t perform that action at this time.
0 commit comments