Skip to content

Commit ea6a751

Browse files
committed
ci: use short sha for build commit
1 parent e2ddfad commit ea6a751

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
CGO_ENABLED: 0
5656
run: |
5757
go build -v -o ${{ matrix.platform.bin_name }} \
58-
-ldflags="-X main.version=${{ inputs.version }} -X main.commit=$(git rev-parse HEAD) -X main.buildDate=$(date +%Y-%m-%dT%H:%M:%S%z) -s -w" \
58+
-ldflags="-X main.version=${{ inputs.version }} -X main.commit=$(git rev-parse --short HEAD) -X main.buildDate=$(date +%Y-%m-%dT%H:%M:%S%z) -s -w" \
5959
./cmd/runtipi/main.go
6060
6161
- name: Upload CLI

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
CGO_ENABLED: 0
5252
run: |
5353
go build -v -o ${{ matrix.platform.bin_name }} \
54-
-ldflags="-X main.version=nightly -X main.commit=$(git rev-parse HEAD) -X main.buildDate=$(date +%Y-%m-%dT%H:%M:%S%z) -s -w" \
54+
-ldflags="-X main.version=nightly -X main.commit=$(git rev-parse --short HEAD) -X main.buildDate=$(date +%Y-%m-%dT%H:%M:%S%z) -s -w" \
5555
./cmd/runtipi/main.go
5656
5757
- name: Upload CLI

0 commit comments

Comments
 (0)