Skip to content

Commit 8326bab

Browse files
committed
Set up git user/email when tagging the crate release
While running on github-hosted runners, it's necessary to manually set up git user/email (actions/checkout#13) for the time being. The user/email used was taken from a suggestion in `actions/checkout` README: https://github.com/actions/checkout/blob/main/README.md#push-a-commit-using-the-built-in-token
1 parent 7d9132b commit 8326bab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: .github/workflows/release.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ jobs:
8383

8484
- name: Tag the Release
8585
run: |
86+
git config user.name "github-actions[bot]"
87+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
8688
git tag -afm "Release ${RELEASE_TAG}" "${RELEASE_TAG}" "${GIT_CHECKOUT_REF}"
8789
git push ${DRY_RUN_FLAG} origin "${RELEASE_TAG}"
8890

0 commit comments

Comments
 (0)