Skip to content

Commit

Permalink
Configure upbound-bot git user in tag action
Browse files Browse the repository at this point in the history
Configures the upbound-bot git user in the tag action before calling
make tag which assumes an already configured git user.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
  • Loading branch information
hasheddan committed Oct 23, 2020
1 parent 5946062 commit 9475b92
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
description: 'Release version (e.g. v0.1.0)'
required: true

env:
UPBOUND_BOT_USR: ${{ secrets.UPBOUND_BOT_USR }}
UPBOUND_BOT_PSW: ${{ secrets.UPBOUND_BOT_PSW }}

jobs:
create-tag:
runs-on: ubuntu-18.04
Expand All @@ -20,6 +24,13 @@ jobs:
- name: Fetch History
run: git fetch --prune --unshallow

- name: Configure Git User
run: |
git config --global credential.helper cache
git config remote.origin.url https://${UPBOUND_BOT_USR}:${UPBOUND_BOT_PSW}@\$(git config --get remote.origin.url | sed -e 's/https:\\/\\///')
git config user.name "upbound-bot"
git config user.email "info@crossplane.io"
- name: Create Tag
run: make -j2 tag
env:
Expand Down

0 comments on commit 9475b92

Please sign in to comment.