Skip to content

Commit 218cdb5

Browse files
authored
check out github.ref in ci.yaml (#298)
Using github.sha as the ref in the checkout action prevents git from seeing the tag when a pushing a tag triggers the workflow, which in turn causes "brimcap -version" to report a SHA instead of the tag. Fix by switching to github.ref.
1 parent 4bbc4ff commit 218cdb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
steps:
2424
- uses: actions/checkout@v3
2525
with:
26-
ref: ${{ inputs.ref || github.sha }}
26+
ref: ${{ inputs.ref || github.ref }}
2727
- uses: actions/setup-go@v3
2828
with:
2929
go-version-file: go.mod

0 commit comments

Comments
 (0)