File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -16,13 +16,17 @@ jobs:
16
16
go-version : 1.13
17
17
id : go
18
18
19
+ - name : Get current time
20
+ uses : gerred/actions/current-time@master
21
+ id : current-time
22
+
19
23
- name : Check out code into the Go module directory
20
24
uses : actions/checkout@v1
21
25
22
26
- name : echo git hash
23
27
run : echo ${{ github.sha }} > Release.txt
24
28
- name : Build Golang Executorable Release
25
- run : go build -ldflags "-s -w -X main.buildTime=$(shell date -u '+%Y-%m-%dT%I:%M:%S%p') -X main.gitHash=$(shell git rev-parse HEAD) " -o sshfortress_${{ matrix.platform }}.release
29
+ run : go build -ldflags "-s -w -X main.buildTime='${{ steps.current-time.outputs.time }}' -X main.gitHash=${{ github.sha }} " -o sshfortress_${{ matrix.platform }}.release
26
30
- name : show build file
27
31
run : ls -al
28
32
- name : Release
You can’t perform that action at this time.
0 commit comments