Skip to content

Commit c72e5a0

Browse files
committed
fix(ci): Configure git before pushing the tag.
1 parent f2b45b3 commit c72e5a0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
steps:
2525
- name: Checkout
2626
uses: actions/checkout@v4
27+
with:
28+
token: "${{ secrets.APP_AUTOSCALER_CI_TOKEN }}"
2729
- name: Install devbox
2830
uses: jetify-com/devbox-install-action@a03caf5813591bc882139eba6ae947930a83a427 # v0.11.0
2931
with:
@@ -37,6 +39,8 @@ jobs:
3739
make SEMVER_PRERELEASE=release SEMVER_MAJOR_VERSION='${{ github.event.inputs.major_version }}' SEMVER_MINOR_VERSION='${{ github.event.inputs.minor_version }}' SEMVER_PATCH_VERSION='${{ github.event.inputs.patch_version }}'
3840
- name: Create and upload tag
3941
run: |
42+
git config --global user.email "ApplicationAutoscaler@sap.com"
43+
git config --global user.name "Application Autoscaler CI Bot"
4044
git tag --annotate "${NEW_TAG}" --message="Release ${NEW_TAG}"
4145
git push origin ${NEW_TAG}
4246
- name: Release
@@ -59,8 +63,6 @@ jobs:
5963
pushd cli-plugin-repo
6064
gh repo set-default cloudfoundry/cli-plugin-repo
6165
gh repo fork --remote
62-
git config user.email "ApplicationAutoscaler@sap.com"
63-
git config user.name "Application Autoscaler CI Bot"
6466
readonly branch_name="bump-app-autoscaler-cli-plugin-to-${NEW_TAG}"
6567
git switch --create="${branch_name}"
6668
git add .

0 commit comments

Comments
 (0)