diff --git a/.github/workflows/generate-schema.yml b/.github/workflows/generate-schema.yml index 48c3f4de..7d096dcb 100644 --- a/.github/workflows/generate-schema.yml +++ b/.github/workflows/generate-schema.yml @@ -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 044360c9..e366bebf 100644 --- a/Specification/BrAPI-Schema/BrAPI-Core/Study.json +++ b/Specification/BrAPI-Schema/BrAPI-Core/Study.json @@ -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": {