1111 runs-on : macos-14
1212 permissions :
1313 contents : write
14- pull-requests : write
1514
1615 steps :
1716 - name : Checkout repository
@@ -135,7 +134,6 @@ jobs:
135134 sed -i '' "s/VERSION_PLACEHOLDER/${TAG}/g" "$FORMULA_FILE"
136135 sed -i '' "s/SHA256_PLACEHOLDER/${SHA256}/g" "$FORMULA_FILE"
137136
138- <<<<<<< HEAD
139137 - name : Create branch and push changes
140138 run : |
141139 TAG=${{ steps.get_version.outputs.tag }}
@@ -146,24 +144,10 @@ jobs:
146144 git pull
147145
148146 # Check if there are changes
149- =======
150- - name : Checkout main branch
151- run : |
152- git checkout main || git checkout master
153- git pull
154-
155- - name : Check for changes
156- id : check_changes
157- run : |
158- >>>>>>> origin/main
159147 if git diff --quiet homebrew-tap/swift-mock-generator.rb; then
160- echo "has_changes=false" >> $GITHUB_OUTPUT
161148 echo "No changes to commit"
162- else
163- echo "has_changes=true" >> $GITHUB_OUTPUT
164- git add homebrew-tap/swift-mock-generator.rb
149+ exit 0
165150 fi
166- <<<<<<< HEAD
167151
168152 # Create branch, commit and push
169153 git checkout -b "$BRANCH_NAME"
@@ -177,26 +161,3 @@ jobs:
177161
178162 echo "✅ Branch '$BRANCH_NAME' created and pushed successfully"
179163 echo "You can now create a PR from this branch to main"
180- =======
181-
182- - name : Create Pull Request
183- if : steps.check_changes.outputs.has_changes == 'true'
184- uses : peter-evans/create-pull-request@v5
185- with :
186- token : ${{ secrets.GITHUB_TOKEN }}
187- commit-message : " Update Homebrew formula to ${{ steps.get_version.outputs.tag }}"
188- title : " Update Homebrew formula to ${{ steps.get_version.outputs.tag }}"
189- body : |
190- This PR automatically updates the Homebrew formula for release ${{ steps.get_version.outputs.tag }}.
191-
192- - **Version**: ${{ steps.get_version.outputs.tag }}
193- - **SHA256**: ${{ steps.sha256.outputs.sha256 }}
194-
195- This PR was created automatically by the release workflow.
196- branch : update-homebrew-formula-${{ steps.get_version.outputs.tag }}
197- delete-branch : true
198- labels : |
199- automated
200- homebrew
201- draft : false
202- >>>>>>> origin/main
0 commit comments