Configure Git user in release workflow
Added steps to set the Git user name and email in the release workflow. This ensures that commits made by the workflow are correctly attributed to GitHub Actions, preventing potential issues with commit authorship.
This commit is contained in:
6
.github/workflows/CreateRelease.yml
vendored
6
.github/workflows/CreateRelease.yml
vendored
@@ -72,6 +72,12 @@ jobs:
|
|||||||
echo "$notes" >> release_notes.md
|
echo "$notes" >> release_notes.md
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
- name: Set Git user
|
||||||
|
run: |
|
||||||
|
git config --local user.name "GitHub Actions"
|
||||||
|
git config --local user.email "actions@github.com"
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- name: Create temporary branch
|
- name: Create temporary branch
|
||||||
id: create_temp_branch
|
id: create_temp_branch
|
||||||
run: |
|
run: |
|
||||||
|
Reference in New Issue
Block a user