Skip to content

Commit

Permalink
Update test workflow children build
Browse files Browse the repository at this point in the history
  • Loading branch information
MSECode committed Dec 27, 2023
1 parent 912d655 commit e272021
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ on:
options:
- master
- feature/**

repository_dispatch:
types: [repository_trigger]

env:
REGISTRY: ghcr.io
REPOSITORY_NAME: ${{ github.repository }}
Expand Down Expand Up @@ -347,4 +349,21 @@ jobs:
version_name: ${{ steps.get_version.outputs.VERSION }}
tag_name: ${{ steps.get_version.outputs.TAG }}
metatadata_name: ${{ steps.get_date.outputs.DATE_HOUR }}


trigger_children_build:
runs-on: [ubuntu-latest]
needs: [build_and_push, check_files]
if: always() && needs.check_files.outputs.children_flag == 'true' && ! cancelled()
steps:

# this step ensures that the children are built with the "release" version, which is used when the "repository_trigger" is sent
- name: Repository Dispatch for release
if: github.event.client_payload.type == 'repository_trigger'
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ env.REPOSITORY_NAME }}
event-type: repository_trigger
client-payload: '{"repo": {"name": "${{ github.repository }}", "branch": "feature/updateImages" },"version": "${{ github.event.client_payload.version }}", "type": "repository_trigger", "img_list": "${{ needs.check_files.outputs.children_matrix }}"}'


0 comments on commit e272021

Please sign in to comment.