Skip to content

Commit 56e6189

Browse files
committed
chore: update the Pre-Commit hooks
1 parent 8a88f96 commit 56e6189

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

.github/workflows/create-release.yml

+24-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,28 @@ jobs:
1414
name: Create a Public Release Version
1515
runs-on: ubuntu-latest
1616
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4.2.2
19+
20+
- name: Set up Go
21+
uses: actions/setup-go@v5.3.0
22+
with:
23+
go-version-file: ./go.mod
24+
25+
- name: Build the Go Binary
26+
run: |
27+
VERSION=${{ github.ref_name }}
28+
GIT_VERSION=$(git describe --tags --always)
29+
GIT_COMMIT=$(git rev-parse --short HEAD)
30+
BUILD_DATE=$(date -u '+%Y-%m-%d')
31+
32+
go build -ldflags "\
33+
-X github.com/Weburz/crisp/internal/version.version=$VERSION \
34+
-X github.com/Weburz/crisp/internal/version.gitVersion=$GIT_VERSION \
35+
-X github.com/Weburz/crisp/internal/version.gitCommit=$GIT_COMMIT \
36+
-X github.com/Weburz/crisp/internal/version.buildDate=$BUILD_DATE" \
37+
-o ./bin/crisp
38+
1739
- name: Create Release
1840
env:
1941
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -22,4 +44,5 @@ jobs:
2244
gh release create "$TAG" \
2345
--repo="$GITHUB_REPOSITORY" \
2446
--title="v${TAG#v}" \
25-
--generate-notes
47+
--generate-notes \
48+
./bin/crisp

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repos:
88
- id: check-added-large-files
99

1010
- repo: https://github.com/Weburz/crisp
11-
rev: v0.1.1-alpha
11+
rev: v0.1.2
1212
hooks:
1313
- id: crisp
1414
name: lint git-commit messages

0 commit comments

Comments
 (0)