-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yaml
More file actions
38 lines (38 loc) · 993 Bytes
/
action.yaml
File metadata and controls
38 lines (38 loc) · 993 Bytes
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
---
name: Get Workflow Run
description: Determine the latest workflow run for a given workflow file and commit SHA.
branding:
color: yellow
icon: at-sign
inputs:
workflow-file:
required: true
commit-sha:
required: true
status:
required: true
default: "any"
repository:
default: ${{ github.repository }}
token:
default: ${{ github.token }}
outputs:
workflow-id:
value: ${{ steps.get-workflow-run.outputs.workflow-id }}
run-id:
value: ${{ steps.get-workflow-run.outputs.run-id }}
run-attempt:
value: ${{ steps.get-workflow-run.outputs.run-attempt }}
runs:
using: composite
steps:
- name: Get workflow run
id: get-workflow-run
shell: bash
run: ${{ github.action_path }}/get-workflow-run.sh
env:
GH_REPO: ${{ inputs.repository }}
GH_TOKEN: ${{ inputs.token }}
workflow_file: ${{ inputs.workflow-file }}
commit_sha: ${{ inputs.commit-sha }}
status: ${{ inputs.status }}