From ce60af2b24100a97d0b13db23f1653ced33bcf02 Mon Sep 17 00:00:00 2001 From: Mohan E Date: Fri, 17 Feb 2023 12:43:27 +0530 Subject: [PATCH] [MOSIP-25637] Updated postgres-init_trigger.yml workflow (#846) Signed-off-by: GOKULRAJ136 <110164849+GOKULRAJ136@users.noreply.github.com> --- .github/workflows/postgres-init_trigger.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/postgres-init_trigger.yml b/.github/workflows/postgres-init_trigger.yml index 1bb3612db6b..3de4c6f32c5 100644 --- a/.github/workflows/postgres-init_trigger.yml +++ b/.github/workflows/postgres-init_trigger.yml @@ -28,7 +28,7 @@ jobs: - 'db_release_scripts/**' db_scripts: - 'db_scripts/**' - + # run only if 'db_release_scripts' files were changed db_release_scripts_updates: needs: paths-filter @@ -42,7 +42,7 @@ jobs: status: ${{ job.status }} fields: repo,message,commit,author,job,took,ref # selectable (default: repo,message) env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} # required + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_DEVOPS }} # required if: success() # Pick up events when the job is successful. # run only if not 'db_release_scripts' files were changed @@ -63,7 +63,7 @@ jobs: status: ${{ job.status }} fields: repo,message,commit,author,job,took,ref # selectable (default: repo,message) env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} # required + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_DEVOPS }} # required if: success() # Pick up events when the job is successful. # run only if not 'db_scripts' files were changed @@ -77,7 +77,7 @@ jobs: steps: - uses: peter-evans/repository-dispatch@v2 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.ACTION_PAT }} repository: mosip/postgres-init base: ${{ github.ref }} event-type: db-event