Skip to content

Commit

Permalink
inter-838: Add "Trigger workflow" workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoroux committed Oct 16, 2023
1 parent ec316fe commit defc7e8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/trigger-workflow.yml
Original file line number Diff line number Diff line change
@@ -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"}'

0 comments on commit defc7e8

Please sign in to comment.