Skip to content

Commit

Permalink
check out github.ref in ci.yaml (#298)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nwt authored Feb 10, 2023
1 parent 4bbc4ff commit 218cdb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.ref || github.sha }}
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@v3
with:
go-version-file: go.mod
Expand Down

0 comments on commit 218cdb5

Please sign in to comment.