Skip to content

Commit efd9599

Browse files
committed
FIx release tag name generation
1 parent ae5dae6 commit efd9599

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/redpoint.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ jobs:
1919
- id: extract_branch
2020
name: Extract branch name
2121
shell: bash
22-
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/redpoint/}}" >> $GITHUB_OUTPUT
22+
run: |
23+
echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/redpoint/}}" >> $GITHUB_OUTPUT
24+
echo "targettag=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/redpoint/}}-${GITHUB_SHA:0:8}" >> $GITHUB_OUTPUT
2325
2426
llvm-redpoint-linux:
2527
name: "Build for Linux"
@@ -133,6 +135,7 @@ jobs:
133135
create-release:
134136
name: "Create Release"
135137
needs:
138+
- get-branch-name
136139
- llvm-redpoint-linux
137140
- llvm-redpoint-windows
138141
runs-on: ubuntu-latest
@@ -144,7 +147,7 @@ jobs:
144147
artifacts: "llvm-linux-${{ needs.get-branch-name.outputs.branch }},llvm-win64-${{ needs.get-branch-name.outputs.branch }}"
145148
artifactErrorsFailBuild: true
146149
artifactContentType: "application/zip"
147-
tag: "${{ needs.get-branch-name.outputs.branch }}-${{ env.GITHUB_SHA }}"
150+
tag: "${{ needs.get-branch-name.outputs.targettag }}"
148151
commit: ${{ env.GITHUB_SHA }}
149152
body: This release for Clang ${{ needs.get-branch-name.outputs.branch }} was automatically created from a successful build.
150153
generateReleaseNotes: true

0 commit comments

Comments
 (0)