Added .yml file to trigger test runs in e2e test repo

This commit is contained in:
zuzanna-maria 2025-03-31 14:29:33 +02:00
parent 12b33378eb
commit 41c5518d98

25
.github/workflows/test-trigger.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Trigger E2E tests
on:
push:
branches: [ staging ]
jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: Trigger E2E test run - local and remote
run: |
# Set the required variables
repo_owner="cryptpad"
repo_name="e2e-test-suite"
event_type="trigger-e2e-tests"
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.TEST_PAT }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/cryptpad/e2e-test-suite/dispatches \
-d "{\"event_type\": \"$event_type\", \"client_payload\": {\"service\": \"$service\", \"version\": \"$version\", \"unit\": false, \"integration\": true}}"