Skip to content

Commit a6d4d63

Browse files
committed
ci: Add Q-CTRL Robot and Email and GitHub Inject ENVs
Fixes an issue with Git commands not knowing which user to push version bumps for on-release events. This will now bump the version with correct user and commit back to the working branches. Adds the GitHub inject environment vars so these can be passed to the housekeeping script.
1 parent 651d33d commit a6d4d63

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/on-release.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,16 @@ jobs:
1919
- name: Vault Login
2020
run: |
2121
./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
22+
- name: Inject environment variables
23+
run: |
24+
./ci env prepareGitHub
2225
- name: Update version in code
2326
env:
2427
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2528
run: |
2629
git config --global --add safe.directory $GITHUB_WORKSPACE
30+
git config --global user.email "[email protected]"
31+
git config --global user.name "Q-CTRL Robot"
2732
/scripts/housekeeping.sh
2833
- name: Publish publicly
2934
env:

0 commit comments

Comments
 (0)