File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments