From 60a2a44c12e5f362277193736105b32f92084970 Mon Sep 17 00:00:00 2001 From: Chintan Kavathia Date: Thu, 21 Nov 2024 17:57:16 +0530 Subject: [PATCH] ci: trigger playwright workflow on another repo --- .github/workflows/test_and_deploy.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index 661210046..e68e31978 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -1,6 +1,7 @@ name: Build, Test, and Deploy on: [pull_request] + jobs: build: runs-on: ubuntu-latest @@ -41,6 +42,17 @@ jobs: env: CI: true + - name: Trigger Repository Siemens Datatable Workflow + if: always() # Runs even if Test step fails + env: + PAT: ${{ secrets.PLAYWRIGHT }} + run: | + curl -X POST \ + -H "Accept: application/vnd.github.v3+json" \ + -H "Authorization: token $PAT" \ + https://api.github.com/repos/chintankavathia/siemens-datatable/actions/workflows/test_and_deploy.yml/dispatches \ + -d '{"ref":"test/setup-playwright"}' + - name: Build Docs run: | npm run build-docs --if-present