fix(ci): use env var for release tag (#342)
Signed-off-by: Guoguo <i@qwq.trade>
This commit is contained in:
parent
57dac394c5
commit
a961a2df87
1 changed files with 4 additions and 2 deletions
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
|
|
@ -32,11 +32,13 @@ jobs:
|
||||||
|
|
||||||
- name: Create and push tag
|
- name: Create and push tag
|
||||||
shell: bash
|
shell: bash
|
||||||
|
env:
|
||||||
|
RELEASE_TAG: ${{ inputs.tag }}
|
||||||
run: |
|
run: |
|
||||||
git config user.name "github-actions[bot]"
|
git config user.name "github-actions[bot]"
|
||||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
git tag -a "${{ inputs.tag }}" -m "Release ${{ inputs.tag }}"
|
git tag -a "$RELEASE_TAG" -m "Release $RELEASE_TAG"
|
||||||
git push origin "${{ inputs.tag }}"
|
git push origin "$RELEASE_TAG"
|
||||||
|
|
||||||
release:
|
release:
|
||||||
name: GoReleaser Release
|
name: GoReleaser Release
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue