Trigger Runtime Builds #1133
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Trigger Runtime Builds | |
on: | |
workflow_run: | |
workflows: [Snapshots] | |
types: [completed] | |
branches: | |
- "development" | |
jobs: | |
trigger: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
steps: | |
- name: Trigger Workflow for boxlang-aws-lambda Repo | |
run: | | |
# Set the required variables | |
target_repo_owner="ortus-boxlang" | |
target_repo_name="boxlang-aws-lambda" | |
target_branch="development" | |
bx_version="1.0.0" | |
curl -L \ | |
-X POST \ | |
-H "Accept: application/vnd.github+json" \ | |
-H "Authorization: Bearer ${{ secrets.GHA_WORKFLOW_DISPATCHER_PAT_BOXLANG }}" \ | |
-H "X-GitHub-Api-Version: 2022-11-28" \ | |
https://api.github.com/repos/$target_repo_owner/$target_repo_name/actions/workflows/snapshot.yml/dispatches \ | |
-d "{\"ref\": \"$target_branch\", \"inputs\": {\"version\": \"$bx_version\"}}" | |
- name: Trigger Workflow for boxlang-web-support Repo | |
run: | | |
# Set the required variables | |
target_repo_owner="ortus-boxlang" | |
target_repo_name="boxlang-web-support" | |
target_branch="development" | |
bx_version="1.0.0" | |
curl -L \ | |
-X POST \ | |
-H "Accept: application/vnd.github+json" \ | |
-H "Authorization: Bearer ${{ secrets.GHA_WORKFLOW_DISPATCHER_PAT_BOXLANG }}" \ | |
-H "X-GitHub-Api-Version: 2022-11-28" \ | |
https://api.github.com/repos/$target_repo_owner/$target_repo_name/actions/workflows/snapshot.yml/dispatches \ | |
-d "{\"ref\": \"$target_branch\", \"inputs\": {\"version\": \"$bx_version\"}}" | |
- name: Trigger Workflow for boxlang-docker Repo | |
run: | | |
# Set the required variables | |
target_repo_owner="ortus-boxlang" | |
target_repo_name="boxlang-docker" | |
target_branch="development" | |
bx_version="1.0.0" | |
curl -L \ | |
-X POST \ | |
-H "Accept: application/vnd.github+json" \ | |
-H "Authorization: Bearer ${{ secrets.GHA_WORKFLOW_DISPATCHER_PAT_BOXLANG }}" \ | |
-H "X-GitHub-Api-Version: 2022-11-28" \ | |
https://api.github.com/repos/$target_repo_owner/$target_repo_name/actions/workflows/release.yml/dispatches \ | |
-d "{\"ref\": \"$target_branch\", \"inputs\": {\"version\": \"$bx_version\"}}" |