Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
google
GitHub Repository: google/crosvm
Path: blob/main/infra/recipes/push_to_github.py
5392 views
1
# Copyright 2022 The ChromiumOS Authors
2
# Use of this source code is governed by a BSD-style license that can be
3
# found in the LICENSE file.
4
5
from recipe_engine.post_process import Filter
6
7
DEPS = [
8
"crosvm",
9
"recipe_engine/buildbucket",
10
"recipe_engine/context",
11
"recipe_engine/raw_io",
12
"recipe_engine/step",
13
"recipe_engine/path",
14
"recipe_engine/file",
15
]
16
17
18
def RunSteps(api):
19
with api.crosvm.source_context():
20
# Execute push in a bash script so there is no chance of leaking the github token via luci
21
# logs.
22
api.step("Pushing to github", ["bash", api.resource("push_to_github.sh")])
23
24
25
def GenTests(api):
26
yield (api.test("basic") + api.post_process(Filter("Pushing to github")))
27
28