-
Notifications
You must be signed in to change notification settings - Fork 1.3k
36 lines (35 loc) · 1.11 KB
/
compile_against_cdr.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
on:
pull_request:
types: [opened, reopened, synchronize]
workflow_dispatch:
inputs:
cdr_branch:
description: 'CDR Branch to Compile Against'
default: 'master'
required: true
type: string
jobs:
compile-against-cdr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Checkout
- name: Install poetry
run: pipx install poetry
- name: Setup Python
uses: actions/[email protected]
with:
python-version: '3.10'
- run: poetry install
name: Install Dependencies
working-directory: ./.github/workflows/cdr_check
- run: poetry run python trigger_and_poll_gitlab.py
name: Execute Poller
working-directory: ./.github/workflows/cdr_check
env:
TRIGGER_TOKEN: ${{ secrets.GITLAB_TRIGGER_TOKEN }}
READ_API_TOKEN: ${{ secrets.GITLAB_READ_API_TOKEN }}
HAPI_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_BRANCH: ${{ inputs.cdr_branch }}