diff --git a/.github/workflows/ant.yml b/.github/workflows/ant.yml index 49edc55..c4b2c16 100644 --- a/.github/workflows/ant.yml +++ b/.github/workflows/ant.yml @@ -13,15 +13,40 @@ on: workflow_dispatch: jobs: + check-release-needed: + runs-on: ubuntu-latest + outputs: + release_needed: ${{ steps.create_release_needed.outputs.release_needed }} + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: ${{ (github.repository == 'JOSM/OpenQA' && github.ref_type == 'branch' && github.ref_name == 'master' && github.event_name != 'schedule' && github.event_name != 'pull_request') && '0' || '1' }} + + - name: Set release needed + id: create_release_needed + run: | + last_tag=$(git describe --tags --abbrev=0 --always) + release_needed="false" + for file in $(git diff ${last_tag}..HEAD --name-only); do + if [[ $file = "src/main"* ]]; then + release_needed="true" + break + fi + done + echo "release_needed=$release_needed" >> $GITHUB_OUTPUT + + call-workflow: + needs: check-release-needed strategy: matrix: - josm-revision: ["", "r18723"] + josm-revision: ["", "r19044"] uses: JOSM/JOSMPluginAction/.github/workflows/ant.yml@v2 with: josm-revision: ${{ matrix.josm-revision }} plugin-jar-name: 'openqa' - perform-revision-tagging: ${{ github.repository == 'JOSM/OpenQA' && github.ref_type == 'branch' && github.ref_name == 'master' && github.event_name != 'schedule' && github.event_name != 'pull_request' && matrix.josm-revision == 'r18724' }} + perform-revision-tagging: ${{ github.repository == 'JOSM/OpenQA' && github.ref_type == 'branch' && github.ref_name == 'master' && github.event_name != 'schedule' && github.event_name != 'pull_request' && matrix.josm-revision == 'r19044' }} secrets: inherit permissions: contents: write diff --git a/gradle.properties b/gradle.properties index b7e2056..3a14c4e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,9 +1,9 @@ # The minimum JOSM version this plugin is compatible with (can be any numeric version) -plugin.main.version = 18723 +plugin.main.version = 19044 # The JOSM version this plugin is currently compiled against # Please make sure this version is available at https://josm.openstreetmap.de/download # The special values "latest" and "tested" are also possible here, but not recommended. -plugin.compile.version = 18724 +plugin.compile.version = 19044 plugin.canloadatruntime = true plugin.author = Taylor Smock plugin.class = com.kaart.openqa.OpenQA diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..5b47eb7 --- /dev/null +++ b/pom.xml @@ -0,0 +1,50 @@ + + 4.0.0 + + org.openstreetmap.josm.plugins + plugin-root + 1.0-SNAPSHOT + + openqa + + ${plugin.link} + + + tsmock + Taylor Smock + tsmock@meta.com + + + + src + 19044 + Taylor Smock <incoming+gokaart/JOSM_OpenQA@incoming.gitlab.com> + com.kaart.openqa.OpenQA + OpenQA validation checker (supports Osmose and Keepright)) + images/openqa.svg + https://github.com/JOSM/OpenQA + true + ${project.basedir}/src/test + ${project.basedir}/src/main/java + + ${project.basedir}/src/main/resources + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + ${plugin.link} + ${plugin.icon} + ${plugin.canloadatruntime} + + + + + + +