Skip to content

Commit ec56c5f

Browse files
committed
Updating CI/CD workflows for version release
Signed-off-by: S3B4SZ17 <[email protected]>
1 parent 811b181 commit ec56c5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,16 @@ jobs:
6161
env:
6262
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6363
DEFAULT_BUMP: "patch"
64-
TAG_CONTEXT: ${{ (github.base_ref != 'main') && 'branch' || 'repo' }}
64+
TAG_CONTEXT: ${{ (github.base_ref != 'main') && 'repo' || 'repo' }}
6565
PRERELEASE_SUFFIX: "beta"
66-
PRERELEASE: ${{ (github.base_ref != 'main') && 'true' || 'false' }}
66+
PRERELEASE: ${{ (github.base_ref != 'main') && 'false' || 'false' }}
6767
DRY_RUN: true
6868

6969
- name: Compare versions
7070
run: |
7171
echo "Current version: ${{ steps.pyproject_version.outputs.TAG }}"
7272
echo "New version: ${{ steps.semantic_release.outputs.tag }}"
73-
if [ "${{ steps.pyproject_version.outputs.TAG }}" != "${{ steps.semantic_release.outputs.tag }}" ]; then
73+
if [ "${{ steps.pyproject_version.outputs.TAG }}" != "${{ steps.semantic_release.outputs.old_tag }}" ]; then
7474
echo "### Version mismatch detected! :warning:
7575
Current version: ${{ steps.pyproject_version.outputs.TAG }}
7676
New version: **${{ steps.semantic_release.outputs.tag }}**

0 commit comments

Comments
 (0)