File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -183,8 +183,6 @@ jobs:
183
183
steps :
184
184
- uses : actions/checkout@v4
185
185
with :
186
- # Required because otherwise there are always changes detected when executing diff/rev-list
187
- fetch-depth : 0
188
186
# If no PAT is used the following error occurs on a push:
189
187
# refusing to allow a GitHub App to create or update workflow `.github/workflows/xxx.yml` without `workflows` permission
190
188
token : ${{ secrets.UPDATE_FROM_TEMPLATE_PAT }}
@@ -210,7 +208,7 @@ jobs:
210
208
211
209
echo "Checking if update-branch-merged exists"
212
210
git fetch
213
- if [[ $(git ls-remote --exit-code --heads origin ${{ env.UPDATE_BRANCH_MERGED }}) ]]; then
211
+ if [[ $(git rev-parse origin/ ${{ env.UPDATE_BRANCH_MERGED }}) ]]; then
214
212
echo "Branch origin/${{ env.UPDATE_BRANCH_MERGED }} is missing"
215
213
exit 0
216
214
fi
@@ -271,11 +269,8 @@ jobs:
271
269
base_branch=$(git branch --show-current)
272
270
echo "Base branch is $base_branch"
273
271
274
- echo "Fully fetching..."
275
- git fetch --unshallow || true
276
- git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
277
- git fetch origin
278
-
272
+ echo "Fetching..."
273
+ git fetch
279
274
if [[ $(git rev-parse origin/${{ env.UPDATE_BRANCH_MERGED }}) ]]; then
280
275
echo "Branch origin/${{ env.UPDATE_BRANCH_MERGED }} is missing"
281
276
exit 0
You can’t perform that action at this time.
0 commit comments