diff --git a/.github/workflows/generate-schema.yml b/.github/workflows/generate-schema.yml index add43dd6..2e2a25b7 100644 --- a/.github/workflows/generate-schema.yml +++ b/.github/workflows/generate-schema.yml @@ -1,4 +1,4 @@ -name: Java CI with Gradle +name: Build specifications, schemas and comparisions on: push: @@ -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 @@ -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 diff --git a/Specification/BrAPI-Schema/BrAPI-Core/Study.json b/Specification/BrAPI-Schema/BrAPI-Core/Study.json index 59b6eb6a..2c7b41e1 100644 --- a/Specification/BrAPI-Schema/BrAPI-Core/Study.json +++ b/Specification/BrAPI-Schema/BrAPI-Core/Study.json @@ -383,7 +383,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": {