Skip to content

Commit d1c3b99

Browse files
committed
Print git status
1 parent abfc70e commit d1c3b99

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/release-proposal-dispatch.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,14 @@ jobs:
188188
- name: Create a branch for the release proposal
189189
id: proposal-branch
190190
run: |
191+
git status
192+
193+
IS_SHALLOW=$(git rev-parse --is-shallow-repository)
194+
if [ "$IS_SHALLOW" = "true" ]; then
195+
echo "Repository is shallow"
196+
git pull --unshallow
197+
fi
198+
191199
git checkout "${{ env.RELEASE_BRANCH }}"
192200
TIMESTAMP=$(date +%Y%m%d-%H%M%S)
193201
BRANCH_NAME="${{ env.PROPOSAL_BRANCH_PREFIX }}/${{ inputs.crate }}/$TIMESTAMP"

0 commit comments

Comments
 (0)