File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -144,12 +144,9 @@ jobs:
144144
145145 - name : Checkout main branch
146146 run : |
147- # Determine the default branch name
148- DEFAULT_BRANCH=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@' || echo "main")
149-
150- # Checkout the default branch (tags are in detached HEAD state)
151- git checkout "$DEFAULT_BRANCH"
152- git pull origin "$DEFAULT_BRANCH"
147+ # Checkout the main branch (tags are in detached HEAD state)
148+ git checkout main
149+ git pull origin main
153150
154151 - name : Update Homebrew formula
155152 run : |
@@ -170,9 +167,6 @@ jobs:
170167 TAG=${{ steps.get_version.outputs.tag }}
171168 BRANCH_NAME="update-homebrew-formula-${TAG}"
172169
173- # Determine the default branch name again
174- DEFAULT_BRANCH=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@' || echo "main")
175-
176170 # Check if there are changes
177171 if git diff --quiet Formula/swift-mock-generator.rb; then
178172 echo "No changes to commit"
@@ -190,4 +184,4 @@ jobs:
190184 git push -u origin "$BRANCH_NAME"
191185
192186 echo "✅ Branch '$BRANCH_NAME' created and pushed successfully"
193- echo "You can now create a PR from this branch to $DEFAULT_BRANCH "
187+ echo "You can now create a PR from this branch to main "
You can’t perform that action at this time.
0 commit comments