-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
40 lines (40 loc) · 1.49 KB
/
action.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Trigger Remote Workflow And Track Its Status
description: 'triggers a remote workflow and waits for its exit status'
inputs:
workflow-org:
description: 'the worklflow"s organization/username on Github'
required: false
default: 'anecdotes-ai'
workflow-repo:
description: 'the workflow"s Github repository/project name'
required: true
workflow-yaml:
description: 'the workflow"s yaml action file name'
required: true
workflow-branch:
description: 'the branch from which the triggered workflow would be executed'
required: true
workflow-inputs:
description: 'additional space-delimited workflow inputs in the var=value format'
required: false
default: 'none'
github-auth-token:
description: 'the Github authentication token to use for POST/GET requests on Github'
required: true
wait-timeout-in-minutes:
description: 'how long we wait for the triggered workflow to complete'
required: 'false'
default: '5'
runs:
using: "composite"
steps:
- run: |
${{ github.action_path }}/remote-workflow-control.sh \
--workflow-org ${{ inputs.workflow-org }} \
--workflow-repo ${{ inputs.workflow-repo }} \
--workflow-yaml ${{ inputs.workflow-yaml }} \
--workflow-branch ${{ inputs.workflow-branch }} \
--auth-token ${{ inputs.github-auth-token }} \
--wait-timeout-minutes ${{ inputs.wait-timeout-in-minutes }} \
--workflow-inputs "${{ inputs.workflow-inputs }}"
shell: bash