Additionalpropertiesfalse generates invalid java code with mapstring #358
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Java CI with Gradle (PR) | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, ready_for_review, labeled] | |
| concurrency: pr-gradle-${{ github.event.pull_request.id }} | |
| jobs: | |
| check-version: | |
| runs-on: ubuntu-latest | |
| if: ${{ contains(github.event.pull_request.labels.*.name, 'release') || contains(github.event.pull_request.labels.*.name, 'gradle') }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Gradle version | |
| id: get-version | |
| run: | | |
| cd scs-multiapi-gradle-plugin | |
| # Usar el wrapper para asegurar la versión de Gradle configurada en gradle-wrapper.properties | |
| # Ejecutar con flags para salida determinista | |
| version=$(./gradlew --no-daemon --console=plain properties -q | grep "version:" | awk '{print $2}') | |
| echo "version=$version" | tee $GITHUB_OUTPUT | |
| - name: Check if plugin version has been published | |
| uses: lakuapik/gh-actions-http-status@v1 | |
| id: plugin-version-check | |
| with: | |
| sites: '["https://plugins.gradle.org/plugin/com.sngular.scs-multiapi-gradle-plugin/${{ steps.get-version.outputs.version }}"]' | |
| expected: '[400]' | |
| continue-on-error: true | |
| - name: Warn about version specification | |
| if: steps.plugin-version-check.outcome != 'success' | |
| uses: thollander/actions-comment-pull-request@v1 | |
| with: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| message: Project version has not been updated in build.gradle. Please, update your version using https://semver.org specifications | |
| - name: Fail | |
| if: steps.plugin-version-check.outcome != 'success' | |
| uses: cutenode/action-always-fail@v1 |