Skip to content

Commit

Permalink
ci: be explicit about branch and user
Browse files Browse the repository at this point in the history
The last attempt failed at the push because the
branch was implied. Use an explicit branch,
and also use the renovate user for the commit.
  • Loading branch information
johanbrandhorst committed May 27, 2020
1 parent 2d2cb57 commit 5bbd365
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,16 +197,16 @@ jobs:
- run:
name: Configure git
command: |
git config user.name "${CIRCLE_USERNAME}"
git config user.email "${CIRCLE_USERNAME}@users.noreply.github.com"
git config user.name "Renovate Bot"
git config user.email "bot@renovateapp.com"
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/grpc-ecosystem/grpc-gateway.git
- run:
name: Git amend and push changes
command: |
git add .
if output=$(git status --porcelain) && [ ! -z "$output" ]; then
git commit --amend --no-edit
git push --force-with-lease
git push --force-with-lease origin ${CIRCLE_BRANCH}
fi
workflows:
version: 2
Expand Down

0 comments on commit 5bbd365

Please sign in to comment.