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