Skip to content

build(deps): bump peter-evans/repository-dispatch from 1 to 3 (#4662) #321

build(deps): bump peter-evans/repository-dispatch from 1 to 3 (#4662)

build(deps): bump peter-evans/repository-dispatch from 1 to 3 (#4662) #321

name: Trigger Deployment to Development on Merge to Main
on:
push:
branches:
- main
jobs:
trigger-deployment:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Trigger Deployment
shell: bash
run: |
set -euo pipefail
curl -X POST \
-H "Authorization: token ${{ secrets.BACALHAU_VMI_DEPLOYMENT_SECRET }}" \
-H "Accept: application/vnd.github+json" \
"https://api.github.com/repos/bacalhau-project/bacalhau-vmi/actions/workflows/deploy-commit.yaml/dispatches" \
--data '{"ref": "main", "inputs": {"commit_reference": "${{ github.sha }}", "redeploy": "false"}}'