diff --git a/.github/workflows/deploy-trigger.yml b/.github/workflows/deploy-trigger.yml new file mode 100644 index 0000000000..2675817155 --- /dev/null +++ b/.github/workflows/deploy-trigger.yml @@ -0,0 +1,35 @@ +name: Trigger Deployment Workflow + +on: + push: + branches: + - vnext + - master + workflow_dispatch: + inputs: + branch: + description: 'Input a branch name (e.g., vnext)' + required: true + +permissions: + contents: read +jobs: + trigger: + runs-on: ubuntu-latest + + steps: + - name: Trigger Workflow in Another Repository + run: | + # Set the required variables + repo_owner="IgniteUI" + repo_name="igniteui-actions" + event_type="igniteui-angular-samples-cd" + branch="${{ github.ref_name }}" + + curl -L \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer ${{ secrets.FINE_PATKA }}" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/$repo_owner/$repo_name/dispatches \ + -d "{\"event_type\": \"$event_type\", \"client_payload\": {\"branch\": \"$branch\", \"unit\": false, \"integration\": true}}" \ No newline at end of file