From 6c50f12c7d14756e642990d0d169a922169f0414 Mon Sep 17 00:00:00 2001 From: ujala-singh Date: Tue, 30 Jan 2024 19:13:47 +0530 Subject: [PATCH 1/2] Remove Staging Branch from Dispatcher: Automate PR Flow --- .github/workflows/chart-release-dispatcher.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/chart-release-dispatcher.yaml b/.github/workflows/chart-release-dispatcher.yaml index f9c3de4d0f..83bd6bda02 100644 --- a/.github/workflows/chart-release-dispatcher.yaml +++ b/.github/workflows/chart-release-dispatcher.yaml @@ -3,11 +3,10 @@ name: Charts Values Seed Trigger Dispatcher on: workflow_run: workflows: - - "Java CI with Maven" + - "Package Docker Image" branches: - - master + - main - beta - - staging types: - completed @@ -25,6 +24,13 @@ jobs: id: extract_branch run: | echo "branch=${{ github.event.workflow_run.head_branch }}" >> $GITHUB_OUTPUT + + - name: Extract Repository Name + id: extract_repo_name + run: | + repo_name=$(basename $GITHUB_REPOSITORY) + echo "repo_name=${repo_name}" >> $GITHUB_OUTPUT + - name: Repository Dispatch uses: peter-evans/repository-dispatch@v2 with: @@ -34,7 +40,7 @@ jobs: client-payload: |- { "repo": { - "name": "${{ github.repository }}", + "name": "${{ steps.extract_repo_name.outputs.repo_name }}", "branch": "${{ steps.extract_branch.outputs.branch }}" } } From 7afb30ec4fce05ff488425ebda098935eb826a4c Mon Sep 17 00:00:00 2001 From: ujala-singh Date: Tue, 30 Jan 2024 19:55:25 +0530 Subject: [PATCH 2/2] Remove Staging Branch from Dispatcher: Automate PR Flow --- .github/workflows/chart-release-dispatcher.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/chart-release-dispatcher.yaml b/.github/workflows/chart-release-dispatcher.yaml index 83bd6bda02..01874e052b 100644 --- a/.github/workflows/chart-release-dispatcher.yaml +++ b/.github/workflows/chart-release-dispatcher.yaml @@ -3,9 +3,9 @@ name: Charts Values Seed Trigger Dispatcher on: workflow_run: workflows: - - "Package Docker Image" + - "Java CI with Maven" branches: - - main + - master - beta types: - completed