-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add env var DEFAULT_BRANCH_PATH (#1136)
First step to fixing googleapis/repo-automation-bots#2098. I want to observe the default branch in the first cloud build step, then pass it to a later step. However, it can't be passed directly via an environment variable because steps can't modify their environment variables and it's not possible to dynamically compose an environment variable in a cloud-build.yaml. Therefore, I'll observe the default branch and record it in a file, and then pass it the file path to the later step. The contents of the file may change but the path to the file is constant and can be specified in cloud-build.yaml.
- Loading branch information
1 parent
e601869
commit d4a91f8
Showing
2 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters