From defc7e893bc2b7db11f5f940837af483da9bbfb9 Mon Sep 17 00:00:00 2001 From: Bruno Roux Date: Mon, 16 Oct 2023 11:52:58 -0500 Subject: [PATCH] inter-838: Add "Trigger workflow" workflow --- .github/workflows/trigger-workflow.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/trigger-workflow.yml diff --git a/.github/workflows/trigger-workflow.yml b/.github/workflows/trigger-workflow.yml new file mode 100644 index 0000000..5340f73 --- /dev/null +++ b/.github/workflows/trigger-workflow.yml @@ -0,0 +1,19 @@ +name: Trigger workflow + +on: + push: + branches: + - main + +jobs: + create_release: + runs-on: ubuntu-latest + timeout-minutes: 15 + steps: + - name: Github REST API Call + env: + CI_TOKEN: ${{ secrets.access_token }} + REMOTE_REPO: bold-commerce/magento-2.3-sandbox-store + WORKFLOW_ID: 72597118 + run: | + curl -fL --retry 3 -X POST -H "Accept: application/vnd.github.v3+json" -H "Authorization: token ${{ env.CI_TOKEN }}" https://api.github.com/repos//${{ env.REMOTE_REPO }}/actions/workflows/${{ env.WORKFLOW_ID }}/dispatches -d '{"ref":"main"}' \ No newline at end of file