From f0bb680305b11657e2eb61839c1ef3181edbf567 Mon Sep 17 00:00:00 2001 From: Debdut Chakraborty Date: Tue, 9 May 2023 00:05:49 +0530 Subject: [PATCH] ci: trigger repository_dispatch event on release (#27247) Co-authored-by: Aaron Ogle Co-authored-by: Diego Sampaio --- .github/workflows/ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index de6de25589fb..fdbe789dbc4c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -619,3 +619,18 @@ jobs: done echo "::endgroup::" + + trigger-dependent-workflows: + runs-on: ubuntu-latest + needs: + - services-docker-image-publish + - docker-image-publish + steps: + - name: Send context to seperate pipeline + uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.DISTRIBUTION_TOKEN }} + event-type: new_release + repository: RocketChat/Release.Distributions + client-payload: '{"tag": "${{ github.ref_name }}"}' +