-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yaml
52 lines (52 loc) · 1.66 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
41
42
43
44
45
46
47
48
49
50
51
52
---
name: Wait for Job
description: >-
Wait for a specific GitHub Actions workflow job to complete. Can be useful for
synchronization between separate workflows.
branding:
color: purple
icon: refresh-cw
inputs:
run-id:
description: The workflow run containing the job to wait for.
required: true
job-name:
description: The rendered workflow job name to wait for.
required: true
timeout:
description: The maximum amount of seconds to wait for the workflow job.
default: "600"
poll-interval:
description: Number of seconds between job status checks.
default: "15"
repository:
description: The repository runing the workflow.
default: ${{ github.repository }}
token:
description: >-
The GitHub token used to authenticate with the GitHub API. Need when attempting to
access artifacts in a different repository.
default: ${{ github.token }}
outputs:
job-id:
description: The job ID of the job which was waited upon.
value: ${{ steps.wait-for-job.outputs.job-id }}
conclusion:
description: >-
The result of the completed job after `continue-on-error` is applied. Possible values
are `success`, `failure`, `cancelled`, or `skipped`.
value: ${{ steps.wait-for-job.outputs.conclusion }}
runs:
using: composite
steps:
- name: Wait for job
id: wait-for-job
run: ${{ github.action_path }}/wait-for-job.sh
shell: bash
env:
GH_REPO: ${{ inputs.repository }}
GH_TOKEN: ${{ inputs.token }}
run_id: ${{ inputs.run-id }}
job_name: ${{ inputs.job-name }}
timeout: ${{ inputs.timeout }}
poll_interval: ${{ inputs.poll-interval }}