From d8ece775fd617d4cee4929da0d1846c45dc37a0a Mon Sep 17 00:00:00 2001 From: syed salman <72004356+syedsalman3753@users.noreply.github.com> Date: Fri, 22 Sep 2023 08:33:34 +0530 Subject: [PATCH] [MOSIP-29164] Updated workflows as per reusable templates (#493) To fix sonar job failures [MOSIP-25631] Co-authored-by: syed-salman-technoforte --- .github/workflows/push-trigger.yml | 2 ++ .github/workflows/release-changes.yml | 28 +++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 .github/workflows/release-changes.yml diff --git a/.github/workflows/push-trigger.yml b/.github/workflows/push-trigger.yml index d66d5b66..2f8df981 100644 --- a/.github/workflows/push-trigger.yml +++ b/.github/workflows/push-trigger.yml @@ -52,6 +52,8 @@ jobs: uses: mosip/kattu/.github/workflows/npm-sonar-analysis.yml@master with: SERVICE_LOCATION: ./resident-ui + SONAR_URL: 'https://sonarcloud.io' + PROJECT_KEY: "mosip_${{ github.event.repository.name }}" secrets: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} ORG_KEY: ${{ secrets.ORG_KEY }} diff --git a/.github/workflows/release-changes.yml b/.github/workflows/release-changes.yml new file mode 100644 index 00000000..0857aee9 --- /dev/null +++ b/.github/workflows/release-changes.yml @@ -0,0 +1,28 @@ +name: Release/pre-release Preparation. + +on: + workflow_dispatch: + inputs: + MESSAGE: + description: 'Triggered for release or pe-release' + required: false + default: 'Release Preparation' + RELEASE_TAG: + description: 'tag to update' + required: true + SNAPSHOT_TAG: + description: 'tag to be replaced' + required: true + BASE: + description: 'base branch for PR' + required: true +jobs: + maven-release-preparation: + uses: mosip/kattu/.github/workflows/release-changes.yml@master + with: + MESSAGE: ${{ inputs.MESSAGE }} + RELEASE_TAG: ${{ inputs.RELEASE_TAG }} + SNAPSHOT_TAG: ${{ inputs.SNAPSHOT_TAG }} + BASE: ${{ inputs.BASE }} + secrets: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file