We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43af294 commit d5a262eCopy full SHA for d5a262e
1 file changed
.github/workflows/reusable-go-test.yml
@@ -3,6 +3,11 @@ name: Reusable Go Testing Workflow
3
on:
4
workflow_call:
5
inputs:
6
+ target-branch:
7
+ description: 'Branch to checkout and test (defaults to the calling branch)'
8
+ required: false
9
+ type: string
10
+ default: ''
11
enable-status-reporting:
12
description: 'Whether to post status checks to datadog-api-spec repo'
13
required: false
@@ -32,6 +37,8 @@ jobs:
32
37
steps:
33
38
- name: Checkout code
34
39
uses: actions/checkout@v3
40
+ with:
41
+ ref: ${{ inputs.target-branch || github.ref }}
35
42
- name: Install Go
36
43
uses: actions/setup-go@v4
44
with:
0 commit comments