From ff3bdf4995ba217d66f0c221dfdebce67b8b2f9c Mon Sep 17 00:00:00 2001 From: Mateusz Kwasniewski Date: Thu, 9 Feb 2023 09:47:42 +0100 Subject: [PATCH] feat: "GH action" trigger another repo --- .github/workflows/continuous-publish-new-version.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/continuous-publish-new-version.yaml b/.github/workflows/continuous-publish-new-version.yaml index c55f3133a7..56183d0bfa 100644 --- a/.github/workflows/continuous-publish-new-version.yaml +++ b/.github/workflows/continuous-publish-new-version.yaml @@ -47,3 +47,14 @@ jobs: git push --tags env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Trigger sync + uses: actions/github-script@v6 + with: + github-token: ${{ secrets.UNLEASH_CI_BUILDER_GITHUB_TOKEN }} + script: | + await github.rest.actions.createWorkflowDispatch({ + owner: 'ivarconr', + repo: 'unleash-enterprise', + workflow_id: 'continuous_version_sync.yaml', + ref: 'master' + })