From 11b906d3a84e279f220b6957c8450b1cda08c5b1 Mon Sep 17 00:00:00 2001 From: Katherine Chen Date: Tue, 19 Dec 2023 14:21:19 +1100 Subject: [PATCH 1/3] Add run-name --- .github/workflows/build-and-publish.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-and-publish.yaml b/.github/workflows/build-and-publish.yaml index cdb1466..87d754a 100644 --- a/.github/workflows/build-and-publish.yaml +++ b/.github/workflows/build-and-publish.yaml @@ -1,4 +1,5 @@ name: Build and Publish JAR Packages +run-name: ${{ inputs.release_type == 'Snapshot' && 'Publish pre-release' || format('Release {0}', inputs.release_type)}} Package by @${{ github.actor }} on: workflow_dispatch: inputs: From fdee71b0144e0dfde6b5f9871d304c26e4e6e0b8 Mon Sep 17 00:00:00 2001 From: Katherine Chen Date: Tue, 19 Dec 2023 14:21:32 +1100 Subject: [PATCH 2/3] Use v2 of the shared pipeline --- .github/workflows/build-and-publish.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-publish.yaml b/.github/workflows/build-and-publish.yaml index 87d754a..3ae3914 100644 --- a/.github/workflows/build-and-publish.yaml +++ b/.github/workflows/build-and-publish.yaml @@ -26,7 +26,7 @@ on: jobs: build-and-pubish: name: Build and publish JAR packages to Maven repository - uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-java-publish-versioned-package.yaml@v2.8 + uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-java-publish-versioned-package.yaml@v2 with: release_type: ${{ inputs.release_type }} publish_to_maven: ${{ inputs.publish_to_maven }} From 122cb824f71f01a24758dc099abcfda74712c74d Mon Sep 17 00:00:00 2001 From: Katherine Chen Date: Tue, 19 Dec 2023 14:21:50 +1100 Subject: [PATCH 3/3] Remove the old workflow --- .github/workflows/publish-major.yaml | 16 ---------------- .github/workflows/publish-minor.yaml | 16 ---------------- .github/workflows/publish-patch.yaml | 16 ---------------- .github/workflows/publish-snapshot.yaml | 16 ---------------- 4 files changed, 64 deletions(-) delete mode 100644 .github/workflows/publish-major.yaml delete mode 100644 .github/workflows/publish-minor.yaml delete mode 100644 .github/workflows/publish-patch.yaml delete mode 100644 .github/workflows/publish-snapshot.yaml diff --git a/.github/workflows/publish-major.yaml b/.github/workflows/publish-major.yaml deleted file mode 100644 index 3997d7c..0000000 --- a/.github/workflows/publish-major.yaml +++ /dev/null @@ -1,16 +0,0 @@ -name: Publish Major Package -on: - workflow_dispatch: - inputs: - publish_to_maven: - description: 'True to publish the artifacts to maven repository, false to skip the step' - default: true - required: false - type: boolean -jobs: - build-publish-package: - uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-java-publish-versioned-package.yaml@v1.0 - with: - release_type: 'Major' - publish_to_maven: ${{ inputs.publish_to_maven }} - secrets: inherit diff --git a/.github/workflows/publish-minor.yaml b/.github/workflows/publish-minor.yaml deleted file mode 100644 index db0364c..0000000 --- a/.github/workflows/publish-minor.yaml +++ /dev/null @@ -1,16 +0,0 @@ -name: Publish Minor Package -on: - workflow_dispatch: - inputs: - publish_to_maven: - description: 'True to publish the artifacts to maven repository, false to skip the step' - default: true - required: false - type: boolean -jobs: - build-publish-package: - uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-java-publish-versioned-package.yaml@v1.0 - with: - release_type: 'Minor' - publish_to_maven: ${{ inputs.publish_to_maven }} - secrets: inherit diff --git a/.github/workflows/publish-patch.yaml b/.github/workflows/publish-patch.yaml deleted file mode 100644 index 4c72407..0000000 --- a/.github/workflows/publish-patch.yaml +++ /dev/null @@ -1,16 +0,0 @@ -name: Publish Patch Package -on: - workflow_dispatch: - inputs: - publish_to_maven: - description: 'True to publish the artifacts to maven repository, false to skip the step' - default: true - required: false - type: boolean -jobs: - build-publish-package: - uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-java-publish-versioned-package.yaml@v1.0 - with: - release_type: 'Patch' - publish_to_maven: ${{ inputs.publish_to_maven }} - secrets: inherit diff --git a/.github/workflows/publish-snapshot.yaml b/.github/workflows/publish-snapshot.yaml deleted file mode 100644 index 3d6e108..0000000 --- a/.github/workflows/publish-snapshot.yaml +++ /dev/null @@ -1,16 +0,0 @@ -name: Publish Snapshot Package -on: - workflow_dispatch: - inputs: - publish_to_maven: - description: 'True to publish the artifacts to maven repository, false to skip the step' - default: true - required: false - type: boolean -jobs: - build-publish-package: - uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-java-publish-versioned-package.yaml@v1.0 - with: - release_type: 'Snapshot' - publish_to_maven: ${{ inputs.publish_to_maven }} - secrets: inherit