Skip to content

Commit

Permalink
internal/ci: rename gerrithub #dispatchWorkflow
Browse files Browse the repository at this point in the history
The name #trybotDispatchWorkflow is more descriptive. It is, for now,
specific to trybot dispatch, so call it that.

This change should not result in any .github/workflows changes.

Signed-off-by: Paul Jolly <paul@myitcv.io>
Change-Id: I068af2abf5d141cc72f17b35ac7f4f8a8f44c6c0
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/551627
Unity-Result: CUEcueckoo <cueckoo@cuelang.org>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
  • Loading branch information
myitcv committed Mar 26, 2023
1 parent f5277b9 commit 0cfd8c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/ci/gerrithub/gerrithub.cue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import (
let _#repositoryURLNoScheme = strings.Split(#repositoryURL, "//")[1]
#gerritHubRepository: *("https://\(#gerritHubHostname)/a/" + path.Base(path.Dir(_#repositoryURLNoScheme)) + "/" + path.Base(_#repositoryURLNoScheme)) | _

#dispatchWorkflow: json.#Workflow & {
#trybotDispatchWorkflow: json.#Workflow & {
#type: string
_#branchNameExpression: "\(#type)/${{ github.event.client_payload.payload.changeID }}/${{ github.event.client_payload.payload.commit }}/${{ steps.gerrithub_ref.outputs.gerrithub_ref }}"
name: "Dispatch \(#type)"
Expand Down
2 changes: 1 addition & 1 deletion internal/ci/github/trybot_dispatch.cue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
package github

// The trybot_dispatch workflow.
workflows: trybot_dispatch: _base.#bashWorkflow & _gerrithub.#dispatchWorkflow & {
workflows: trybot_dispatch: _base.#bashWorkflow & _gerrithub.#trybotDispatchWorkflow & {
#type: _base.trybot.key
}

0 comments on commit 0cfd8c5

Please sign in to comment.