-
Notifications
You must be signed in to change notification settings - Fork 9
51 lines (43 loc) · 1.67 KB
/
BuildTestInstance.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
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Build Test Instance
run-name: \[${{ github.event.client_payload.build_type }}\] MMC instance of ${{ inputs.branch | github.event.client_payload.branch }}, triggered by @${{ github.actor }}
on:
workflow_dispatch:
inputs:
branch:
description: 'Cleanroom branch'
default: 'main'
repository_dispatch:
types: [cleanroom_upload_artifact]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.12' # install the python version needed
- name: install python packages
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: execute py script # run main.py
run: python main.py
env:
cleanroomDownloadBranch: ${{ inputs.branch }}
commit_hash: ${{ github.event.client_payload.commit_hash }}
run_job_url: ${{ github.event.client_payload.run_job_url }}
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
name: Cleanroom_MMC
# A file, directory or wildcard pattern that describes what to upload
path: build/output