diff --git a/.github/workflows/eclipse-ls-extensions-build.yml b/.github/workflows/eclipse-ls-extensions-build.yml index 9b2d96630..d39d69ff9 100644 --- a/.github/workflows/eclipse-ls-extensions-build.yml +++ b/.github/workflows/eclipse-ls-extensions-build.yml @@ -1,12 +1,21 @@ -name: Eclipse LS Extensions Snapshot Build +name: Eclipse LS Extensions Build # configure manual trigger #on: # workflow_dispatch: on: - push: - branches: - - 'main' + workflow_call: + inputs: + build_type: + description: Build type such as 'snapshot', 'milestone' or 'release' + required: true + default: 'snapshot' + type: string + ref: + description: Git branch, tag, commit hash + required: false + default: 'main' + type: string jobs: @@ -49,15 +58,15 @@ jobs: run: | cd eclipse-language-servers if command -v xvfb-run ; then - xvfb-run ./mvnw --batch-mode clean deploy -Pe428 -Psnapshot -Pgitactions -Pgpg.sign -DbuildNumber=${{ steps.timestamp.outputs.date }} -Dsigning.skip=true -Dhttpclient.retry-max=20 -Declipse.p2.mirrors=false -Ds3service.https-only=true -Dmaven.test.skip=true -Dtycho.localArtifacts=ignore + xvfb-run ./mvnw --batch-mode clean deploy -Pe428 -P${{ inputs.build_type }} -Pgitactions -Pgpg.sign -DbuildNumber=${{ steps.timestamp.outputs.date }} -Dsigning.skip=true -Dhttpclient.retry-max=20 -Declipse.p2.mirrors=false -Ds3service.https-only=true -Dmaven.test.skip=true -Dtycho.localArtifacts=ignore else - ./mvnw --batch-mode clean deploy -Pe428 -Psnapshot -Pgitactions -Pgpg.sign -DbuildNumber=${{ steps.timestamp.outputs.date }} -Dsigning.skip=true -Dhttpclient.retry-max=20 -Declipse.p2.mirrors=false -Ds3service.https-only=true -Dmaven.test.skip=true -Dtycho.localArtifacts=ignore + ./mvnw --batch-mode clean deploy -Pe428 -P${{ inputs.build_type }} -Pgitactions -Pgpg.sign -DbuildNumber=${{ steps.timestamp.outputs.date }} -Dsigning.skip=true -Dhttpclient.retry-max=20 -Declipse.p2.mirrors=false -Ds3service.https-only=true -Dmaven.test.skip=true -Dtycho.localArtifacts=ignore fi - name: Verify Eclipse LS Extensions on e429 run: | cd eclipse-language-servers if command -v xvfb-run ; then - xvfb-run ./mvnw --batch-mode clean package -Pe429 -Psnapshot -DbuildNumber=${{ steps.timestamp.outputs.timestamp }} -Dsigning.skip=true -Dhttpclient.retry-max=20 -Declipse.p2.mirrors=false -Ds3service.https-only=true -Dmaven.test.skip=true -Dtycho.localArtifacts=ignore + xvfb-run ./mvnw --batch-mode clean package -Pe429 -P${{ inputs.build_type }} -DbuildNumber=${{ steps.timestamp.outputs.timestamp }} -Dsigning.skip=true -Dhttpclient.retry-max=20 -Declipse.p2.mirrors=false -Ds3service.https-only=true -Dmaven.test.skip=true -Dtycho.localArtifacts=ignore else - ./mvnw --batch-mode clean package -Pe429 -Psnapshot -DbuildNumber=${{ steps.timestamp.outputs.timestamp }} -Dsigning.skip=true -Dhttpclient.retry-max=20 -Declipse.p2.mirrors=false -Ds3service.https-only=true -Dmaven.test.skip=true -Dtycho.localArtifacts=ignore + ./mvnw --batch-mode clean package -Pe429 -P${{ inputs.build_type }} -DbuildNumber=${{ steps.timestamp.outputs.timestamp }} -Dsigning.skip=true -Dhttpclient.retry-max=20 -Declipse.p2.mirrors=false -Ds3service.https-only=true -Dmaven.test.skip=true -Dtycho.localArtifacts=ignore fi diff --git a/.github/workflows/snapshot-e427-eclipse-distro-build.yml b/.github/workflows/snapshot-e427-eclipse-distro-build.yml index 7fff3c1aa..d0f5fcfd0 100644 --- a/.github/workflows/snapshot-e427-eclipse-distro-build.yml +++ b/.github/workflows/snapshot-e427-eclipse-distro-build.yml @@ -1,14 +1,14 @@ name: Snapshot - 4.27 Eclipse STS Distribution Build concurrency: - group: e427 + group: e427-snapshot cancel-in-progress: true #on: # workflow_dispatch: on: workflow_run: - workflows: ["Eclipse LS Extensions Snapshot Build"] + workflows: ["Snapshot - Eclipse LS Extensions"] types: [completed] branches: - "main" diff --git a/.github/workflows/snapshot-e428-eclipse-distro-build.yml b/.github/workflows/snapshot-e428-eclipse-distro-build.yml index 755021373..5c4e8564d 100644 --- a/.github/workflows/snapshot-e428-eclipse-distro-build.yml +++ b/.github/workflows/snapshot-e428-eclipse-distro-build.yml @@ -1,14 +1,14 @@ name: Snapshot - 4.28 Eclipse STS Distribution Build concurrency: - group: e428 + group: e428-snapshot cancel-in-progress: true #on: # workflow_dispatch: on: workflow_run: - workflows: ["Eclipse LS Extensions Snapshot Build"] + workflows: ["Snapshot - Eclipse LS Extensions"] types: [completed] branches: - "main" diff --git a/.github/workflows/snapshot-e429-eclipse-distro-build.yml b/.github/workflows/snapshot-e429-eclipse-distro-build.yml index 3cdd18a8a..fea313f83 100644 --- a/.github/workflows/snapshot-e429-eclipse-distro-build.yml +++ b/.github/workflows/snapshot-e429-eclipse-distro-build.yml @@ -1,12 +1,12 @@ name: Snapshot - 4.29 Eclipse STS Distribution Build concurrency: - group: e429 + group: e429-snapshot cancel-in-progress: true on: workflow_run: - workflows: ["Eclipse LS Extensions Snapshot Build"] + workflows: ["Snapshot - Eclipse LS Extensions"] types: [completed] branches: - "main" diff --git a/.github/workflows/snapshot-eclipse-ls-extensions-build.yml b/.github/workflows/snapshot-eclipse-ls-extensions-build.yml new file mode 100644 index 000000000..f398da152 --- /dev/null +++ b/.github/workflows/snapshot-eclipse-ls-extensions-build.yml @@ -0,0 +1,19 @@ +name: Snapshot - Eclipse LS Extensions + +concurrency: + group: eclipse-ls-extension-snapshot + cancel-in-progress: true + +#on: +# workflow_dispatch: +on: + push: + branches: + - 'main' + +jobs: + eclipse-ls-extensions: + uses: ./.github/workflows/eclipse-ls-extensions-build.yml + with: + build_type: 'snapshot' + secrets: inherit \ No newline at end of file