Skip to content

update branches to trigger. send ref with the trigger event #85

update branches to trigger. send ref with the trigger event

update branches to trigger. send ref with the trigger event #85

name: Invoke workflow in another repo with inputs
on:
push:
branches:
- 'develop'
- 'v2'
- 'test-trigger'
jobs:
trigger-deploy:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Trigger deploy workflow
uses: benc-uk/workflow-dispatch@v1
with:
workflow: frontend-staging.yml
repo: developmentseed/pearl-reforestamos-deploy
inputs: '{ "commit": "${{ github.event.after }}", "branch": "${{ github.ref }}" }'
ref: main
token: ${{ secrets.PAT }}