Skip to content

Commit b8c3409

Browse files
author
Guy Davenport
committed
updated EnvironmentParameters -> EnvironmentParameters and CI
1 parent 128ce7a commit b8c3409

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

.github/workflows/generate-schema.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Java CI with Gradle
1+
name: Build specifications, schemas and comparisions
22

33
on:
44
push:
@@ -22,7 +22,19 @@ jobs:
2222
run: |
2323
echo "Automated commit detected - skipping job"
2424
echo "skip_job=true" >> "$GITHUB_OUTPUT"
25-
25+
- name: Check Branch with Regex
26+
id: check-tag
27+
run: |
28+
if [ "${{ github.ref }}" =~ ^refs/heads/brapi-V[0-9]+\.[0-9]+$ ]; then
29+
echo "commit=true" >> $GITHUB_ENV
30+
else
31+
echo "commit=false" >> $GITHUB_ENV
32+
fi
33+
if [[env.commit == 'true']]; then
34+
echo "Release branch - will commit generated files"
35+
else
36+
echo "Feature branch - will NOT commit generated files"
37+
fi
2638
generate:
2739
runs-on: ubuntu-latest
2840
needs: check
@@ -63,4 +75,5 @@ jobs:
6375
- name: Compare OpenAPI
6476
working-directory: ./generator
6577
run: ./gradlew compareAll
66-
- uses: stefanzweifel/git-auto-commit-action@v5
78+
- if: env.commit == 'true'
79+
uses: stefanzweifel/git-auto-commit-action@v5

Specification/BrAPI-Schema/BrAPI-Core/Study.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@
383383
"parameterName",
384384
"description"
385385
],
386-
"title": "EnvironmentParameters",
386+
"title": "EnvironmentParameter",
387387
"description": "Environmental parameters that were kept constant throughout the study and did not change between observation units. \n\nMIAPPE V1.1 (DM-57) Environment - Environmental parameters that were kept constant throughout the study and did not change between observation units or assays. Environment characteristics that vary over time, i.e. environmental variables, should be recorded as Observed Variables (see below).",
388388
"type": "object",
389389
"brapi-metadata": {

0 commit comments

Comments
 (0)