Skip to content

Commit a64f968

Browse files
committed
Print git status
1 parent abfc70e commit a64f968

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

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

Lines changed: 15 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"
@@ -203,6 +211,13 @@ jobs:
203211
run: |
204212
echo "Release version bumps..."
205213
214+
git status
215+
IS_SHALLOW=$(git rev-parse --is-shallow-repository)
216+
if [ "$IS_SHALLOW" = "true" ]; then
217+
echo "Repository is shallow"
218+
git pull --unshallow
219+
fi
220+
206221
# Initialize results array
207222
echo "[]" > /tmp/api-changes.json
208223

0 commit comments

Comments
 (0)