mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 13:07:09 +00:00
fix(release): remove unnecessary quotes in tag pattern
This commit is contained in:
parent
b398db02cc
commit
1902b3bbcf
2
.github/workflows/run-goreleaser.yml
vendored
2
.github/workflows/run-goreleaser.yml
vendored
@ -5,7 +5,7 @@ name: "Release Binary"
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- "v*"
|
- v*
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
38
.github/workflows/tag-on-merge.yml
vendored
38
.github/workflows/tag-on-merge.yml
vendored
@ -1,38 +0,0 @@
|
|||||||
name: Automatic Tag Bump
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
types:
|
|
||||||
- closed
|
|
||||||
branches:
|
|
||||||
- develop
|
|
||||||
- master
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
create_release_tag:
|
|
||||||
if: github.event.pull_request.merged == true
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Install Commitizen
|
|
||||||
run: pip install commitizen
|
|
||||||
|
|
||||||
- name: Determine next version
|
|
||||||
id: version
|
|
||||||
run: |
|
|
||||||
next_version=$(cz bump --dry-run)
|
|
||||||
echo "Next version: $next_version"
|
|
||||||
echo "NEW_VERSION=$next_version" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Create and push tag
|
|
||||||
run: |
|
|
||||||
git config user.name github-actions
|
|
||||||
git config user.email github-actions@github.com
|
|
||||||
git tag -a "release/${{ env.NEW_VERSION }}" -m "Release ${{ env.NEW_VERSION }}"
|
|
||||||
git push origin "release/${{ env.NEW_VERSION }}"
|
|
Loading…
x
Reference in New Issue
Block a user