diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e09ee26..1b4d72e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,8 @@ jobs: release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: Checkout code + uses: actions/checkout@v2 - name: Set up Python uses: actions/setup-python@v1 with: @@ -35,4 +36,18 @@ jobs: env: ANSIBLE_GALAXY_API_KEY: ${{ secrets.ANSIBLE_GALAXY_API_KEY }} run: | - ansible-galaxy collection publish *.tar.gz --api-key $ANSIBLE_GALAXY_API_KEY \ No newline at end of file + ansible-galaxy collection publish *.tar.gz --api-key $ANSIBLE_GALAXY_API_KEY + dispatch: + needs: release + strategy: + matrix: + repo: ['ansible-middleware/cross-dc-rhsso-demo', 'ansible-middleware/flange-demo'] + runs-on: ubuntu-latest + steps: + - name: Repository Dispatch + uses: peter-evans/repository-dispatch@v1 + with: + token: ${{ secrets.TRIGGERING_PAT }} + repository: ${{ matrix.repo }} + event-type: "Dependency released - Keycloak" + client-payload: '{ "github": ${{toJson(github)}} }'