| 1 |
// Copyright 2023 The CUE Authors |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
// package github declares the workflows for this project. |
| 16 |
package github |
| 17 |
|
| 18 |
// Note: the name of the workflows (and hence the corresponding .yml filenames) |
| 19 |
// correspond to the environment variable names for gerritstatusupdater. |
| 20 |
// Therefore, this filename must only be change in combination with also |
| 21 |
// updating the environment in which gerritstatusupdater is running for this |
| 22 |
// repository. |
| 23 |
// |
| 24 |
// This name is also used by the CI badge in the top-level README. |
| 25 |
// |
| 26 |
// This name is also used in the evict_caches lookups. |
| 27 |
// |
| 28 |
// i.e. don't change the names of workflows! |
| 29 |
// |
| 30 |
// In addition to separately declaring the workflows themselves, we define the |
| 31 |
// shape of #workflows here as a cross-check that we don't accidentally change |
| 32 |
// the name of workflows without reading this comment. |
| 33 |
// |
| 34 |
// We explicitly use close() here instead of a definition in order that we can |
| 35 |
// cue export the github package as a test. |
| 36 |
workflows: close({ |
| 37 |
// Adding this constraint here, whilst clear for the reader, |
| 38 |
// blows out evaluation time. This will be fixed as part of |
| 39 |
// the performance work which is covered under various issues. |
| 40 |
// [string]: json.#Workflow |
| 41 |
|
| 42 |
_repo.trybotWorkflows |
| 43 |
trybot_dispatch: #dummyDispatch: dummyDispatch |
| 44 |
}) |
| 45 |
|
| 46 |
dummyDispatch: _repo.#dispatch & { |
| 47 |
type: _repo.trybot.key |
| 48 |
} |