From ef2f24e9fcf66bccdab63f68d62a0428de2cd7a9 Mon Sep 17 00:00:00 2001 From: Ranabir Chakraborty Date: Tue, 28 Jul 2026 21:28:35 +0530 Subject: [PATCH] AMW-594 Upstream release is failing due to recent rules change --- .github/workflows/publish.yml | 31 +++++++++++++++++++++++++++++++ .github/workflows/release.yml | 16 +--------------- 2 files changed, 32 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..030538e --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,31 @@ +--- +name: Publish collection +on: + workflow_dispatch: + +jobs: + publish: + uses: ansible-middleware/github-actions/.github/workflows/publish.yml@main + with: + collection_fqcn: 'middleware_automation.keycloak' + downstream_name: 'rhbk' + secrets: + galaxy_token: ${{ secrets.ANSIBLE_GALAXY_API_KEY }} + jira_webhook: ${{ secrets.JIRA_WEBHOOK_CREATE_VERSION }} + push_token: ${{ secrets.TRIGGERING_PAT }} + + dispatch: + needs: publish + if: needs.publish.result == 'success' + strategy: + matrix: + repo: ['ansible-middleware/ansible-middleware-ee'] + runs-on: ubuntu-latest + steps: + - name: Repository Dispatch + uses: peter-evans/repository-dispatch@v4 + with: + token: ${{ secrets.TRIGGERING_PAT }} + repository: ${{ matrix.repo }} + event-type: "Dependency released - Keycloak v${{ needs.publish.outputs.tag_version }}" + client-payload: '{ "github": ${{toJson(github)}} }' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d0d14d8..74564af 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,18 +17,4 @@ jobs: secrets: galaxy_token: ${{ secrets.ANSIBLE_GALAXY_API_KEY }} jira_webhook: ${{ secrets.JIRA_WEBHOOK_CREATE_VERSION }} - - dispatch: - needs: release - strategy: - matrix: - repo: ['ansible-middleware/ansible-middleware-ee'] - 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 v${{ needs.release.outputs.tag_version }}" - client-payload: '{ "github": ${{toJson(github)}} }' + push_token: ${{ secrets.TRIGGERING_PAT }}