Skip to content

Commit 723b2f9

Browse files
committed
change git tag suffix to something more unique
1 parent 318467e commit 723b2f9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
contents: write
7474

7575
env:
76-
TAG: v${{ needs.meta.outputs.latest-version }}
76+
VERSION: ${{ needs.meta.outputs.latest-version }}
7777
COMMIT: ${{ github.event.pull_request.base.sha || github.event.before }} # either the PR base ref or previous commit in the branch
7878
GH_REPOSITORY: ${{ github.repository }}
7979

@@ -82,6 +82,7 @@ jobs:
8282
- name: Create a release for previous implementation version
8383
env:
8484
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
85+
TAG: harness-release-${{ env.VERSION }}
8586
run: >
8687
gh api
8788
--method POST
@@ -90,8 +91,8 @@ jobs:
9091
/repos/${GH_REPOSITORY}/releases
9192
-f "tag_name=$TAG"
9293
-f "target_commitish=$COMMIT"
93-
-f "name=$TAG"
94-
-f "body=Automatic release for $TAG"
94+
-f "name=$VERSION"
95+
-f "body=Automatic release for $VERSION"
9596
-F "generate_release_notes=true"
9697
9798

0 commit comments

Comments
 (0)