Skip to content

Commit

Permalink
Added branch in matrix
Browse files Browse the repository at this point in the history
This branch refers to the target branch in the repos where the workflows are to be triggered.
For public-dash branch name: main
For admin-dash branch name: master
  • Loading branch information
Mahadik, Mukul Chandrakant authored and Mahadik, Mukul Chandrakant committed Aug 14, 2024
1 parent f65f94c commit 19dd26d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/image_build_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ jobs:

strategy:
matrix:
repo: ['e-mission/op-admin-dashboard', 'e-mission/em-public-dashboard']
include:
- repo: e-mission/op-admin-dashboard
branch: master
- repo: e-mission/em-public-dashboard
branch: main

steps:
- uses: actions/checkout@v4
Expand All @@ -75,4 +79,4 @@ jobs:
-H "Authorization: Bearer ${{ secrets.GH_FG_PAT_TAGS }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/${{ matrix.repo }}/actions/workflows/image_build_push.yml/dispatches \
-d '{"ref":"master", "inputs": {"docker_image_tag" : "${{ env.DOCKER_IMAGE_TAG }}"}}'
-d '{"ref":"${{ matrix.branch }}", "inputs": {"docker_image_tag" : "${{ env.DOCKER_IMAGE_TAG }}"}}'

0 comments on commit 19dd26d

Please sign in to comment.