We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b529847 commit a62bbe1Copy full SHA for a62bbe1
.github/workflows/go-check.yml
@@ -1,6 +1,10 @@
1
name: Go Checks
2
on:
3
workflow_call:
4
+ inputs:
5
+ go-version:
6
+ required: false
7
+ type: string
8
9
jobs:
10
unit:
@@ -16,7 +20,7 @@ jobs:
16
20
uses: pl-strflt/uci/.github/actions/read-go-mod@main
17
21
- uses: actions/setup-go@v4
18
22
with:
19
- go-version: ${{ fromJSON(steps.go-mod.outputs.json).Go }}.x
23
+ go-version: ${{ inputs.go-version || (fromJSON(steps.go-mod.outputs.json).Go && format('{0}.x', fromJSON(steps.go-mod.outputs.json).Go)) }}
24
cache: false
25
- name: Run repo-specific setup
26
uses: ./.github/actions/go-check-setup
0 commit comments