Skip to content

Commit 22c3ded

Browse files
authored
Update workflow-release-drafter.yml
1 parent ca90275 commit 22c3ded

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/workflow-release-drafter.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,21 @@ jobs:
3232
- name: Check out the repository
3333
uses: actions/checkout@v5
3434
with:
35-
fetch-depth: 2
35+
fetch-depth: 0
3636
token: ${{ secrets.GH_INFRAHUB_BOT_TOKEN }}
3737

38+
- name: Configure git identity (required for annotated tags)
39+
run: |
40+
git config --local user.name "opsmill-bot"
41+
git config --local user.email "[email protected]"
42+
3843
- name: Ensure tag exists on the target commit
3944
env:
4045
VERSION: ${{ inputs.version }}
4146
TARGET_SHA: ${{ inputs.target_sha }}
4247
run: |
4348
set -euo pipefail
4449
git fetch origin --tags
45-
# Ensure the target commit exists locally
4650
if ! git cat-file -e "${TARGET_SHA}^{commit}" >/dev/null 2>&1; then
4751
echo "::error::Target SHA ${TARGET_SHA} not found locally"
4852
exit 1

0 commit comments

Comments
 (0)