Skip to content

Commit

Permalink
internal/ci: remove hard-codings in base package
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Jolly <paul@myitcv.io>
Change-Id: I6f75a5e265a76b4450c70b045753639d1b492fba
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/552038
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 1, 2023
1 parent 0c840f6 commit f881884
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/ci/base/gerrithub.cue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ trybotDispatchWorkflow: bashWorkflow & {
git remote add origin \(trybotRepositoryURL)
git fetch origin "${{ github.event.client_payload.payload.branch }}"
git push origin \(_#branchNameExpression)
echo ${{ secrets.CUECKOO_GITHUB_PAT }} | gh auth login --with-token
echo ${{ secrets.\(botGitHubUserTokenSecretsKey) }} | gh auth login --with-token
gh pr --repo=\(trybotRepositoryURL) create --base="${{ github.event.client_payload.payload.branch }}" --fill
"""
},
Expand Down Expand Up @@ -167,7 +167,7 @@ evictCaches: bashWorkflow & {
run: """
set -eux
echo ${{ secrets.CUECKOO_GITHUB_PAT }} | gh auth login --with-token
echo ${{ secrets.\(botGitHubUserTokenSecretsKey) }} | gh auth login --with-token
gh extension install actions/gh-actions-cache
for i in \(githubRepositoryURL) \(trybotRepositoryURL)
do
Expand Down Expand Up @@ -205,7 +205,7 @@ evictCaches: bashWorkflow & {
}

writeNetrcFile: json.#step & {
name: "Write netrc file for cueckoo Gerrithub"
name: "Write netrc file for \(botGerritHubUser) Gerrithub"
run: """
cat <<EOD > ~/.netrc
machine \(gerritHubHostname)
Expand Down

0 comments on commit f881884

Please sign in to comment.