You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/build-node.yml
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,11 @@ name: build-node
2
2
3
3
on:
4
4
workflow_call:
5
+
inputs:
6
+
branch:
7
+
type: string
8
+
required: false
9
+
default: ${{ github.ref || github.head_ref }}
5
10
secrets:
6
11
DATAVISYN_BOT_REPO_TOKEN:
7
12
required: false
@@ -31,6 +36,7 @@ jobs:
31
36
# checkout specific source repository
32
37
- uses: actions/checkout@v3
33
38
with:
39
+
ref: ${{ inputs.branch }}
34
40
token: ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }} # has to set because otherwise it will not work
35
41
# checkout this workflow repository to get actions
0 commit comments