Skip to content

Commit 56684f1

Browse files
committed
ci(integrations): rewrite ci test
Signed-off-by: Árpád Csepi <csepi.arpad@outlook.com>
1 parent 310cd57 commit 56684f1

File tree

2 files changed

+28
-19
lines changed

2 files changed

+28
-19
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Copyright AGNTCY Contributors (https://github.com/agntcy)
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
name: test-remote-workflow-dispatch-trigger
5+
on:
6+
workflow_dispatch:
7+
pull_request:
8+
9+
jobs:
10+
trigger-integration-workflow:
11+
runs-on: ubuntu-latest
12+
permissions: write-all # TODO: Find the correct permission or create PAT token
13+
steps:
14+
- name: Repository Dispatch
15+
uses: actions/github-script@v7
16+
with:
17+
script: |
18+
await github.rest.actions.createWorkflowDispatch({
19+
owner: 'agntcy',
20+
repo: 'csit',
21+
workflow_id: 'test-integrations.yaml',
22+
ref: 'feat/gh-action-repository-dispatch',
23+
inputs: {
24+
'override-gateway-image-tag': '0.3.11',
25+
'override-directory-image-tag': 'v0.2.1',
26+
},
27+
});
28+
debug: true

.github/workflows/test-repository-dispatch.yaml

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)