-
Notifications
You must be signed in to change notification settings - Fork 264
46 lines (42 loc) · 1.15 KB
/
update-healthcheck.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Update healthcheck
on:
workflow_dispatch:
inputs:
branch:
description: "Branch to checkout"
required: true
type: string
repo:
description: "Repo to checkout"
required: true
type: string
sha:
description: "Commit to checkout"
required: true
type: string
check:
description: "Check ID"
required: true
type: string
conclusion:
description: "Healthcheck conclusion"
required: true
type: string
jobs:
update-healthckeck:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Update check
run: |
npm i @octokit/rest
node .github/scripts/update-check.js
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PERSONAL_ACCESS_TOKEN: ${{ secrets.DEV_HUB_PERSONAL_ACCESS_TOKEN }}
DEV_HUB_BRANCH: ${{ inputs.branch }}
DEV_HUB_REPO: ${{ inputs.repo }}
DEV_HUB_SHA: ${{ inputs.sha }}
DEV_HUB_CHECK: ${{ inputs.check }}
DEV_HUB_CONCLUSION: ${{ inputs.conclusion }}