Skip to content

Commit 3759c8f

Browse files
committed
chore(release): v0.1.7
re #3
1 parent 9117664 commit 3759c8f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/release.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ jobs:
1010
name: Release
1111
runs-on: ubuntu-latest
1212
steps:
13+
- name: Get the version tag
14+
id: get_version_tag
15+
run: echo ::set-output name=VERSION_TAG::${GITHUB_REF/refs\/tags\//}
16+
1317
- name: Create Release
1418
id: create_release
1519
uses: actions/create-release@v1
@@ -29,7 +33,7 @@ jobs:
2933
formula-name: gitwok
3034
homebrew-tap: Roytangrb/homebrew-gitwok
3135
base-branch: main
32-
download-url: https://github.com/Roytangrb/gitwok/archive/${{ github.event.release.tag_name }}.tar.gz
36+
download-url: https://github.com/Roytangrb/gitwok/archive/${{ steps.get_version_tag.outputs.VERSION_TAG }}.tar.gz
3337
commit-message: Release {{version}}
3438
env:
3539
COMMITTER_TOKEN: ${{ secrets.BREW_TAP_REPO_TOKEN }}

cmd/root.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var logger *util.Logger = util.InitLogger(os.Stdout, os.Stdout, os.Stdout, os.St
2525
// rootCmd represents the base command when called without any subcommands
2626
var rootCmd = &cobra.Command{
2727
Use: "gitwok",
28-
Version: "v0.1.6",
28+
Version: "v0.1.7",
2929
Short: "Configurable CLI with conventional commits, changelog, git hooks all in one",
3030
Run: func(cmd *cobra.Command, args []string) {},
3131
}

0 commit comments

Comments
 (0)