Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions .github/workflows/trigger-integration.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Trigger Integration Tests

on:
pull_request:
branches: [main]
release:
types: [published]

Expand All @@ -10,9 +12,16 @@ jobs:
steps:
- name: Trigger integration tests
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.INTEGRATION_TOKEN }}
run: |
gh api repos/xPyD-hub/xPyD-integration/dispatches \
-f event_type=release-check \
-f "client_payload[repo]=xPyD-sim" \
-f "client_payload[version]=${{ github.event.release.tag_name }}"
if [ "${{ github.event_name }}" = "pull_request" ]; then
gh api repos/xPyD-hub/xPyD-integration/dispatches \
-f event_type=pr-check \
-f "client_payload[repo]=xPyD-sim" \
-f "client_payload[ref]=${{ github.head_ref }}"
else
gh api repos/xPyD-hub/xPyD-integration/dispatches \
-f event_type=release-check \
-f "client_payload[repo]=xPyD-sim" \
-f "client_payload[version]=${{ github.event.release.tag_name }}"
fi
1 change: 1 addition & 0 deletions .integration-test-trigger
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# trigger test
Loading