forked from open-ce/open-ce
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.08 KB
/
opence-pr.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: Open-CE PR Job
on:
pull_request:
branches:
- 'main' # matches the main branch
- 'open-ce-r*' # matches every release branch
jobs:
release_dry_run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'
- uses: conda-incubator/setup-miniconda@v2.0.0
with:
auto-update-conda: true
python-version: "3.10"
- name: Install dependencies
shell: bash -l {0}
run: |
conda install -y python=3.10 conda-build=3.22
- name: Clone build tools
shell: bash -l {0}
run: |
git clone https://github.com/open-ce/open-ce-builder.git \
./open-ce-builder
pip install ./open-ce-builder
- name: Perform Release Dry-Run
shell: bash -l {0}
run: |
git config --global user.name "Github Action"
git config --global user.email "pwraiciw@us.ibm.com"
python open-ce-builder/git_tools/create_opence_release.py \
--branch "${{ github.base_ref }}"