-
Notifications
You must be signed in to change notification settings - Fork 8
52 lines (45 loc) · 1.85 KB
/
build.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
name: Build release files
on:
workflow_dispatch:
push:
branches: [ master ]
paths:
- 'src/ontology/imports/**_import.owl'
- 'src/ontology/components/**.owl'
- 'src/ontology/**-edit.owl'
jobs:
build:
runs-on: ubuntu-latest
container: obolibrary/odkfull:v1.5.2
strategy:
max-parallel: 1
steps:
- name: Checkout main branch
uses: actions/checkout@v2
- name: work around permission issue
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Update release files
run: cd src/ontology/ && make ROBOT_ENV='ROBOT_JAVA_ARGS=-Xmx6G' GITHUB_ACTION=true IMP=false PAT=false MIR=false prepare_release
#@matentzn believes testing should be done once per week independently of releases
# So we do not block releases because some ontology is not passing tests
#- name: Run Test suite
# run: cd src/ontology/ && make ROBOT_ENV='ROBOT_JAVA_ARGS=-Xmx6G' GITHUB_ACTION=true IMP=false PAT=false MIR=false test
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: Update release files
title: 'Update release files'
body: |
Updates all release files. Please:
- [] Review the pull request and merge it
- [] After merging, please check the [associated release draft](https://github.com/OBOFoundry/COB/releases) and publish it.
assignees: sebastianduesing
- name: Run release
uses: gaoDean/action-gh-release@6b61bb5648ddc1241deb73ea6b72c3a1e1f9e445
with:
generate_release_notes: true
draft: true
tag_name: v${{ steps.date.outputs.date }}