Skip to content

Commit

Permalink
ci: trigger playwright workflow on another repo
Browse files Browse the repository at this point in the history
  • Loading branch information
chintankavathia committed Nov 21, 2024
1 parent e818477 commit 60a2a44
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Build, Test, and Deploy

on: [pull_request]

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 60a2a44

Please sign in to comment.