Skip to content

Commit

Permalink
chore: update go version and release action
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Aug 12, 2022
1 parent d1595cc commit f28f935
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .github/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ style: gh-release
# group names
names: [Refactor, Fixed, Feature, Update, Other]
# if empty will auto fetch by git remote
#repo_url: https://github.com/{{repoPath}}
#repo_url: https://github.com/gookit/goutil

filters:
# message length should >= 12
Expand All @@ -31,7 +31,7 @@ rules:
contains: ['fix:']
- name: Feature
start_withs: [feat, new]
contains: [feature]
contains: [feature, 'feat:']
- name: Update
start_withs: [update, 'up:']
contains: [' update']
start_withs: [up]
contains: ['update:', 'up:']
13 changes: 3 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,13 @@ jobs:
timeout-minutes: 10
strategy:
fail-fast: true
matrix:
go_version: [1.17]

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Go Faster
uses: WillAbides/setup-go-faster@v1.7.0
timeout-minutes: 3
with:
go-version: ${{ matrix.go_version }}

- name: Setup ENV
# https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable
run: |
Expand All @@ -35,8 +27,9 @@ jobs:
- name: Generate changelog
run: |
go install github.com/gookit/gitw/cmd/chlog@latest
chlog -config .github/changelog.yml -output changelog.md prev last
curl https://github.com/gookit/gitw/releases/latest/download/chlog-linux-amd64 -L -o /usr/local/bin/chlog
chmod a+x /usr/local/bin/chlog
chlog -c .github/changelog.yml -o changelog.md prev last
# https://github.com/softprops/action-gh-release
- name: Create release and upload assets
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/gookit/rux

go 1.15
go 1.16

require (
github.com/gookit/color v1.5.1
Expand Down

0 comments on commit f28f935

Please sign in to comment.