Skip to content

Trigger Runtime Builds #4

Trigger Runtime Builds

Trigger Runtime Builds #4

Workflow file for this run

name: Trigger Docker Image Creation
on:
workflow_run:
workflows: [BoxLang Snapshots]
types: [completed]
branches:
- "development"
jobs:
trigger:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Trigger Workflow in Another Repository
run: |
# Set the required variables
repo_owner="ortus-solutions-private"
repo_name="docker-bx"
event_type="trigger-workflow"
service=release"
version="1.0.0"
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-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\": {\"service\": \"$service\", \"version\": \"$version\", \"unit\": false, \"integration\": true}}"