Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions .github/workflows/generate-schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,19 @@ jobs:
run: |
echo "Automated commit detected - skipping job"
echo "skip_job=true" >> "$GITHUB_OUTPUT"

- name: Check Branch with Regex
id: check-tag
run: |
if [ "${{ github.ref }}" =~ ^refs/heads/brapi-V[0-9]+\.[0-9]+$ ]; then
echo "commit=true" >> $GITHUB_ENV
else
echo "commit=false" >> $GITHUB_ENV
fi
if [[env.commit == 'true']]; then
echo "Release branch - will commit generated files"
else
echo "Feature branch - will NOT commit generated files"
fi
generate:
runs-on: ubuntu-latest
needs: check
Expand Down Expand Up @@ -63,4 +75,5 @@ jobs:
- name: Compare OpenAPI
working-directory: ./generator
run: ./gradlew compareAll
- uses: stefanzweifel/git-auto-commit-action@v5
- if: env.commit == 'true'
uses: stefanzweifel/git-auto-commit-action@v5
2 changes: 1 addition & 1 deletion Specification/BrAPI-Schema/BrAPI-Core/Study.json
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@
"parameterName",
"description"
],
"title": "EnvironmentParameters",
"title": "EnvironmentParameter",
"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).",
"type": "object",
"brapi-metadata": {
Expand Down