Skip to content

Commit

Permalink
feat: add PR comment trigger for the workload checks workflow (#18839)
Browse files Browse the repository at this point in the history
  • Loading branch information
pront authored Oct 13, 2023
1 parent c8557d0 commit 11bc5d9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/comment-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
# /ci-run-environment : runs Environment Suite
# /ci-run-regression : runs Regression Detection Suite
# /ci-run-k8s : runs K8s E2E Suite
# /ci-run-workload-checks : runs Workload Checks Suite

name: Comment Trigger

Expand Down Expand Up @@ -59,6 +60,7 @@ jobs:
|| contains(github.event.comment.body, '/ci-run-environment')
|| contains(github.event.comment.body, '/ci-run-regression')
|| contains(github.event.comment.body, '/ci-run-k8s')
|| contains(github.event.comment.body, '/ci-run-workload-checks')
)
steps:
- name: Generate authentication token
Expand Down Expand Up @@ -138,3 +140,9 @@ jobs:
if: contains(github.event.comment.body, '/ci-run-all') || contains(github.event.comment.body, '/ci-run-k8s')
uses: ./.github/workflows/k8s_e2e.yml
secrets: inherit

workload-checks:
needs: validate
if: contains(github.event.comment.body, '/ci-run-all') || contains(github.event.comment.body, '/ci-run-workload-checks')
uses: ./.github/workflows/workload_checks.yml
secrets: inherit
6 changes: 5 additions & 1 deletion .github/workflows/workload_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
#
# Runs on:
# - scheduled UTC midnight Tues-Sat

# - on demand by a PR comment matching either of:
# - '/ci-run-regression'
# - '/ci-run-all'
# (the comment issuer must be a member of the Vector GH team)
#
# This workflow runs the collection of our workload checks, using the latest Vector nightly image,
# which depends on when the workflow is invoked.
#
Expand Down

0 comments on commit 11bc5d9

Please sign in to comment.