Skip to content

Commit 0f7b9b3

Browse files
committed
added branch as input
1 parent 2d3db86 commit 0f7b9b3

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/workflows/build-node.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: build-node
22

33
on:
44
workflow_call:
5+
inputs:
6+
branch:
7+
type: string
8+
required: false
9+
default: ${{ github.ref || github.head_ref }}
510
secrets:
611
DATAVISYN_BOT_REPO_TOKEN:
712
required: false
@@ -31,6 +36,7 @@ jobs:
3136
# checkout specific source repository
3237
- uses: actions/checkout@v3
3338
with:
39+
ref: ${{ inputs.branch }}
3440
token: ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }} # has to set because otherwise it will not work
3541
# checkout this workflow repository to get actions
3642
- uses: actions/checkout@v3

.github/workflows/build-python.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: build-python
22

33
on:
44
workflow_call:
5+
inputs:
6+
branch:
7+
type: string
8+
required: false
9+
default: ${{ github.ref || github.head_ref }}
510
secrets:
611
DATAVISYN_BOT_REPO_TOKEN:
712
required: false
@@ -27,6 +32,8 @@ jobs:
2732
steps:
2833
# checkout specific source repository
2934
- uses: actions/checkout@v3
35+
with:
36+
ref: ${{ inputs.branch }}
3037
# checkout this workflow repository to get actions
3138
- uses: actions/checkout@v3
3239
with:

0 commit comments

Comments
 (0)