Skip to content

Commit 76931b5

Browse files
fix: update-workflow
1 parent a9a2266 commit 76931b5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/prepare-release-pr.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
1616
uses: actions/checkout@v3
1717
with:
1818
fetch-depth: 0
19-
# This is crucial - explicitly tell it to get all branches
2019
ref: master
2120

2221
- name: Set Git Identity
@@ -28,12 +27,11 @@ jobs:
2827
env:
2928
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3029
run: |
31-
# Ensure we have the latest from both branches
32-
git fetch origin master:master
33-
git fetch origin main:main
30+
# We're already on master, just need to fetch main
31+
git fetch origin main:refs/remotes/origin/main
3432
3533
# Check if there are differences between main and master
36-
DIFF_COUNT=$(git rev-list --count main..master)
34+
DIFF_COUNT=$(git rev-list --count origin/main..HEAD)
3735
3836
if [ "$DIFF_COUNT" -gt 0 ]; then
3937
echo "Differences found between main and master. Creating PR..."

0 commit comments

Comments
 (0)