-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
29 lines (29 loc) · 1002 Bytes
/
action.yml
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
name: 'Update commit status'
description: "Update a commit status"
inputs:
context:
description: A string label to differentiate this status from the status of other systems. This field is case-insensitive.
required: true
state:
description: The state of the status. Can be one of error, failure, pending, or success.
required: true
description:
description: A short description of the status
required: false
default: ""
runs:
using: "composite"
steps:
- name: Create commit status
uses: actions/github-script@v7
with:
script: |
github.rest.repos.createCommitStatus({
owner: context.repo.owner,
repo: context.repo.repo,
sha: context.sha,
state: "${{ inputs.state }}",
context: "${{ inputs.context }}",
description: "${{ inputs.description }}",
target_url: "https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}"
});