forked from childmindresearch/slurm_testing
-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (56 loc) · 1.59 KB
/
initiate_check.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
47
48
49
50
51
52
53
54
55
56
57
58
name: Initiate check
run-name: ${{ inputs.job }} ${{ inputs.task }} initiated on ${{ inputs.environment }}
on:
workflow_dispatch:
inputs:
job:
description: SLURM job
type: string
required: true
task:
description: run or correlate
type: string
required: true
ref:
description: 'branch, tag, or SHA'
type: string
required: true
owner:
description: 'owner on GitHub'
type: string
required: false
default: "FCP-INDI"
repo:
description: 'repository on GitHub'
type: string
required: false
default: "C-PAC"
environment:
description: 'Environment in which to run correlations'
type: environment
required: false
default: ACCESS
preconfig:
type: string
required: true
data_source:
type: string
required: true
jobs:
initiate:
runs-on: ubuntu-latest
environment: ${{ inputs.environment}}
name: Running ${{ inputs.job }} on ${{ inputs.environment }}
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Initiate check
uses: guibranco/[email protected]
with:
authToken: ${{ secrets.GH_PAT }}
context: lite ${{ inputs.task }} ${{ inputs.preconfig }} ${{ inputs.data_source }}
description: ${{ inputs.job }} on ${{ inputs.environment }}
owner: ${{ inputs.owner }}
repository: ${{ inputs.repo }}
sha: ${{ inputs.ref }}
state: pending