We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3aeef51 commit 08e7acbCopy full SHA for 08e7acb
.github/workflows/test.yml
@@ -8,6 +8,12 @@ on:
8
branches:
9
- main
10
workflow_dispatch:
11
+ inputs:
12
+ branch:
13
+ description: "Branch name to checkout and run tests for"
14
+ required: false
15
+ default: "refs/heads/main"
16
+ type: string
17
18
concurrency:
19
group: ${{ github.ref }}-${{ github.workflow }}
@@ -24,6 +30,7 @@ jobs:
24
30
- name: Checkout Code
25
31
uses: actions/checkout@v6
26
32
with:
33
+ ref: ${{ inputs.branch || 'refs/heads/main' }}
27
34
fetch-depth: 0
28
35
29
36
- uses: actions/setup-go@v6
@@ -42,6 +49,7 @@ jobs:
42
49
43
50
44
51
52
45
53
46
54
47
55
0 commit comments