Skip to content

Commit

Permalink
internal/ci: allow trybot workflows to be workflow_dispatch-ed
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Jolly <paul@myitcv.io>
Change-Id: Idf83ce0b3700853dbbdf6d189aa7327a6e2be7b5
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/552154
Unity-Result: CUEcueckoo <cueckoo@cuelang.org>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
  • Loading branch information
myitcv committed Apr 4, 2023
1 parent 42580d5 commit 09221a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/trybot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ name: TryBot
tags-ignore:
- v*
pull_request: {}
workflow_dispatch: {}
jobs:
test:
strategy:
Expand Down
4 changes: 3 additions & 1 deletion internal/ci/base/gerrithub.cue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ import (

// trybotWorkflows is a template for trybot-based repos
trybotWorkflows: {
(trybot.key): json.#Workflow
(trybot.key): json.#Workflow & {
on: workflow_dispatch: {}
}
"\(trybot.key)_dispatch": trybotDispatchWorkflow
"push_tip_to_\(trybot.key)": pushTipToTrybotWorkflow
"evict_caches": evictCaches
Expand Down

0 comments on commit 09221a3

Please sign in to comment.