Skip to content

Commit 4341712

Browse files
authored
Add ref and sha inputs to CI workflow (#43)
1 parent 1fc7afa commit 4341712

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ on:
1818
required: false
1919
type: string
2020
default: 'test-*'
21+
ref:
22+
description: "The fully-formed ref of the branch or tag that triggered the workflow run"
23+
required: false
24+
default: ${{ github.ref }}
25+
type: string
26+
sha:
27+
description: "The sha of the commit that triggered the workflow run"
28+
required: false
29+
default: ${{ github.sha }}
30+
type: string
2131
publish:
2232
description: "Whether to publish a new release immediately"
2333
required: false
@@ -90,7 +100,7 @@ jobs:
90100
workflow_file_name: ${{ matrix.env }}
91101
ref: ${{ github.event_name == 'push' && github.ref || github.event.pull_request.head.ref }}
92102
wait_interval: 10
93-
client_payload: '{}'
103+
client_payload: '{"ref":"${{ inputs.ref }}","sha":"${{ inputs.sha }}"}'
94104
propagate_failure: true
95105
trigger_workflow: true
96106
wait_workflow: true

0 commit comments

Comments
 (0)