Skip to content

Commit 287eb9e

Browse files
authored
add trigger action (#52)
1 parent 6fb103a commit 287eb9e

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Trigger Konflux build
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
trigger-konflux-build:
7+
uses: securesign/actions/.github/workflows/trigger-konflux-build.yaml@main
8+
with:
9+
branch: main
10+
secrets:
11+
token: ${{ secrets.GITHUB_TOKEN }}

.tekton/rhtas-console-ui-pull-request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ metadata:
88
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
99
pipelinesascode.tekton.dev/cancel-in-progress: "true"
1010
pipelinesascode.tekton.dev/max-keep-runs: "3"
11-
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "main"
11+
pipelinesascode.tekton.dev/on-cel-expression: (event == "pull_request" && target_branch == "main") || "trigger-konflux-builds.txt".pathChanged()
1212
creationTimestamp: null
1313
labels:
1414
appstudio.openshift.io/application: rhtas-console

.tekton/rhtas-console-ui-push.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
88
pipelinesascode.tekton.dev/cancel-in-progress: "false"
99
pipelinesascode.tekton.dev/max-keep-runs: "3"
10-
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "main"
10+
pipelinesascode.tekton.dev/on-cel-expression: (event == "push" && target_branch == "main") || "trigger-konflux-builds.txt".pathChanged()
1111
creationTimestamp: null
1212
labels:
1313
appstudio.openshift.io/application: rhtas-console

0 commit comments

Comments
 (0)