-
Notifications
You must be signed in to change notification settings - Fork 31
36 lines (35 loc) · 1.16 KB
/
compile_against_cdr-cr.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
name: Compile against CDR Clinical Reasoning
on:
pull_request:
types: [opened, reopened, synchronize]
workflow_dispatch:
inputs:
cdr_cr_branch:
description: 'CDR-CR Branch to Compile Against'
default: 'main'
required: true
type: string
jobs:
compile-against-cdr-cr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Checkout
- name: Install poetry
run: pipx install poetry
- name: Setup Python
uses: actions/setup-python@v4.6.0
with:
python-version: '3.10'
- run: poetry install
name: Install Dependencies
working-directory: ./.github/workflows/cdr_cr_check
- run: poetry run python trigger_and_poll_gitlab.py
name: Execute Poller
working-directory: ./.github/workflows/cdr_cr_check
env:
TRIGGER_TOKEN: ${{ secrets.GITLAB_TRIGGER_TOKEN }}
READ_API_TOKEN: ${{ secrets.GITLAB_READ_API_TOKEN }}
CLINICAL_REASONING_BRANCH: ${{ github.head_ref || github.ref_name }}
# When run via the manual run, this will be set. When run in a PR, it will be blank.
CDR_CR_BRANCH: ${{ inputs.cdr_cr_branch }}