Fix workflow preview environment repository dispatch (#11739)

This is hard to test without merging PRs unfortunately

Goal of this PR is to replace the action I had introduced since there
was already a similar one in the codebase
This commit is contained in:
Félix Malfait
2025-04-25 15:52:12 +02:00
committed by GitHub
parent 3fc498dba7
commit 535a8d4410
2 changed files with 9 additions and 17 deletions

View File

@ -27,8 +27,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Trigger preview environment workflow
uses: benc-uk/workflow-dispatch@v1
uses: peter-evans/repository-dispatch@v2
with:
workflow: preview-env-keepalive.yaml
token: ${{ secrets.GITHUB_TOKEN }}
inputs: '{"pr_number": "${{ github.event.pull_request.number }}", "pr_head_sha": "${{ github.event.pull_request.head.sha }}", "repo_full_name": "${{ github.repository }}"}'
repository: ${{ github.repository }}
event-type: preview-environment
client-payload: '{"pr_number": "${{ github.event.pull_request.number }}", "pr_head_sha": "${{ github.event.pull_request.head.sha }}", "repo_full_name": "${{ github.repository }}"}'