From 54ecf7361dd567bd6dcd3d91e54276caecd6d1dd Mon Sep 17 00:00:00 2001 From: Rakshitha Date: Fri, 4 Feb 2022 13:46:23 +0000 Subject: [PATCH 1/6] [MOSIP-19883] Adding workflow for release changes --- .github/workflows/push_trigger.yml | 3 +++ .github/workflows/release_changes.yml | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/.github/workflows/push_trigger.yml b/.github/workflows/push_trigger.yml index 57ec6ef8bd2..a3a25bd3db9 100644 --- a/.github/workflows/push_trigger.yml +++ b/.github/workflows/push_trigger.yml @@ -3,6 +3,8 @@ name: Maven Package upon a push on: push: branches: + - '!release-branch' + - release-1* - master - 1.* - develop @@ -69,6 +71,7 @@ jobs: publish_to_nexus: + if: "!contains(github.ref, master)" runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/release_changes.yml b/.github/workflows/release_changes.yml index 21b68e6357e..cc9c2956d9e 100644 --- a/.github/workflows/release_changes.yml +++ b/.github/workflows/release_changes.yml @@ -35,9 +35,19 @@ jobs: cd .github/workflows sed -i 's/OSSRH_SNAPSHOT_URL/RELEASE_URL/g' push_trigger.yml + - name: Updating libs-snapshot-local to libs-release local for artifactory URL's. + run: find . -type f -name "*Dockerfile" -print0 | xargs -0 sed -i "s/libs-snapshot-local/libs-release-local/g" + + - name: removing -DskipTests + run: find . -type f -name "*push_trigger.yml" -print0 | xargs -0 sed -i "s/"-DskipTests"//g" + +# - name: removing --Dgpg.skip +# run: find . -type f -name "*push_trigger.yml" -print0 | xargs -0 sed -i "s/"-Dgpg.skip"//g" + - name: Create Pull Request uses: peter-evans/create-pull-request@v3 with: + token: ${{ secrets.ACTION_PAT }} commit-message: Updated Pom versions for release changes title: Release changes body: Automated PR for ${{ github.event.inputs.releaseTags }} release. From f3aaa574d35eca4a00b456b9d43e5ff5a3c9e222 Mon Sep 17 00:00:00 2001 From: Keshav Mishra Date: Tue, 8 Feb 2022 21:45:18 +0530 Subject: [PATCH 2/6] Update push_trigger.yml --- .github/workflows/push_trigger.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push_trigger.yml b/.github/workflows/push_trigger.yml index a3a25bd3db9..fa1aa35fe3d 100644 --- a/.github/workflows/push_trigger.yml +++ b/.github/workflows/push_trigger.yml @@ -71,7 +71,7 @@ jobs: publish_to_nexus: - if: "!contains(github.ref, master)" + if: "!contains(github.ref, 'master')" runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 From 35bf5cba5e5373033267dcb064f10a0010b38ee6 Mon Sep 17 00:00:00 2001 From: Keshav Mishra Date: Tue, 8 Feb 2022 22:02:47 +0530 Subject: [PATCH 3/6] [MOSIP-19883] updated workflow --- .github/workflows/release_changes.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release_changes.yml b/.github/workflows/release_changes.yml index cc9c2956d9e..43366ac9d7d 100644 --- a/.github/workflows/release_changes.yml +++ b/.github/workflows/release_changes.yml @@ -35,8 +35,8 @@ jobs: cd .github/workflows sed -i 's/OSSRH_SNAPSHOT_URL/RELEASE_URL/g' push_trigger.yml - - name: Updating libs-snapshot-local to libs-release local for artifactory URL's. - run: find . -type f -name "*Dockerfile" -print0 | xargs -0 sed -i "s/libs-snapshot-local/libs-release-local/g" +# - name: Updating libs-snapshot-local to libs-release local for artifactory URL's. +# run: find . -type f -name "*Dockerfile" -print0 | xargs -0 sed -i "s/libs-snapshot-local/libs-release-local/g" - name: removing -DskipTests run: find . -type f -name "*push_trigger.yml" -print0 | xargs -0 sed -i "s/"-DskipTests"//g" From e75f448254e32dba85f09cb66f69f4fc960c3bde Mon Sep 17 00:00:00 2001 From: ckm007 Date: Tue, 8 Feb 2022 16:38:18 +0000 Subject: [PATCH 4/6] Updated Pom versions for release changes --- .github/workflows/push_trigger.yml | 2 +- biometrics-util/pom.xml | 2 +- test/pom.xml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/push_trigger.yml b/.github/workflows/push_trigger.yml index fa1aa35fe3d..2895044be15 100644 --- a/.github/workflows/push_trigger.yml +++ b/.github/workflows/push_trigger.yml @@ -115,7 +115,7 @@ jobs: - name: Publish the maven package run: | - cd biometrics-util && mvn deploy -DskipTests -DaltDeploymentRepository=ossrh::default::${{ secrets.OSSRH_SNAPSHOT_URL }} -s $GITHUB_WORKSPACE/settings.xml -f pom.xml + cd biometrics-util && mvn deploy -DaltDeploymentRepository=ossrh::default::${{ secrets.RELEASE_URL }} -s $GITHUB_WORKSPACE/settings.xml -f pom.xml env: GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} GPG_TTY: $(tty) diff --git a/biometrics-util/pom.xml b/biometrics-util/pom.xml index ab216c68fcb..09d6207534c 100644 --- a/biometrics-util/pom.xml +++ b/biometrics-util/pom.xml @@ -5,7 +5,7 @@ io.mosip.biometric.util biometrics-util - 0.0.1-SNAPSHOT + 1.2.0 biometrics-util http://maven.apache.org This utility is used to convert ISO to Image and Image to ISO diff --git a/test/pom.xml b/test/pom.xml index 10f4dce9a92..31fe0f2ded8 100644 --- a/test/pom.xml +++ b/test/pom.xml @@ -11,14 +11,14 @@ io.mosip.bio.utils bioutils jar - 0.0.1-SNAPSHOT + 1.2.0 bioutils http://maven.apache.org io.mosip.biometric.util biometrics-util - 0.0.1-SNAPSHOT + 1.2.0 From 684465852eaa243ff8ce2ac4ede06b2fe74a1645 Mon Sep 17 00:00:00 2001 From: Keshav Mishra Date: Tue, 8 Feb 2022 22:29:38 +0530 Subject: [PATCH 5/6] [MOSIP-19910] updated badges --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index b8e2041c4d1..16b4a058be1 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Maven Package upon a push](https://github.com/mosip/bio-utils/actions/workflows/push_trigger.yml/badge.svg?branch=release-1.2.0)](https://github.com/mosip/bio-utils/actions/workflows/push_trigger.yml) + [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?branch=release-1.2.0&project=mosip_biometrics-util&id=mosip_biometrics-util&metric=alert_status)](https://sonarcloud.io/dashboard?id=mosip_biometrics-util) # Bio Utils ## Overview From 9639ecf5256a226b89eb4a44d233a5ab9ec3b507 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 16 Nov 2022 05:21:31 +0000 Subject: [PATCH 6/6] Bump jackson-databind from 2.5.4 to 2.12.7.1 in /test Bumps [jackson-databind](https://github.com/FasterXML/jackson) from 2.5.4 to 2.12.7.1. - [Release notes](https://github.com/FasterXML/jackson/releases) - [Commits](https://github.com/FasterXML/jackson/commits) --- updated-dependencies: - dependency-name: com.fasterxml.jackson.core:jackson-databind dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- test/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/pom.xml b/test/pom.xml index 31fe0f2ded8..44d8b40f211 100644 --- a/test/pom.xml +++ b/test/pom.xml @@ -60,7 +60,7 @@ com.fasterxml.jackson.core jackson-databind - 2.5.4 + 2.12.7.1 org.projectlombok