@@ -157,9 +157,7 @@ jobs:
157
157
steps :
158
158
- uses : actions/checkout@v2
159
159
with :
160
- repository : ${{ secrets.HOMEBREW_REPO }}
161
- ref : main
162
- token : ${{ secrets.GH_TOKEN }}
160
+ path : ./ipatool
163
161
- uses : actions/download-artifact@v2
164
162
with :
165
163
name : ipatool-${{ needs.get_version.outputs.version }}-macos-arm64
@@ -176,8 +174,8 @@ jobs:
176
174
FILE : ipatool-${{ needs.get_version.outputs.version }}-macos-amd64
177
175
- id : sha256
178
176
run : |
179
- SHA256_ARM64=$(./tools/sha256sum.sh ipatool-${{ needs.get_version.outputs.version }}-macos-arm64.tar.gz)
180
- SHA256_AMD64=$(./tools/sha256sum.sh ipatool-${{ needs.get_version.outputs.version }}-macos-amd64.tar.gz)
177
+ SHA256_ARM64=$(./ipatool/ tools/sha256sum.sh ipatool-${{ needs.get_version.outputs.version }}-macos-arm64.tar.gz)
178
+ SHA256_AMD64=$(./ipatool/ tools/sha256sum.sh ipatool-${{ needs.get_version.outputs.version }}-macos-amd64.tar.gz)
181
179
echo $SHA256_ARM64 > ipatool-${{ needs.get_version.outputs.version }}-macos-arm64.tar.gz.sha256sum
182
180
echo $SHA256_AMD64 > ipatool-${{ needs.get_version.outputs.version }}-macos-amd64.tar.gz.sha256sum
183
181
echo ::set-output name=sha256_arm64::$SHA256_ARM64
@@ -189,7 +187,14 @@ jobs:
189
187
tag : ${{ github.ref }}
190
188
overwrite : false
191
189
file_glob : true
190
+ - uses : actions/checkout@v2
191
+ with :
192
+ repository : ${{ secrets.HOMEBREW_REPO }}
193
+ ref : main
194
+ token : ${{ secrets.GH_TOKEN }}
195
+ path : homebrew-repo
192
196
- run : |
197
+ cd homebrew-repo
193
198
sed -i "3s/.*/ sha256 \"$SHA256_ARM64\"/" Casks/ipatool.rb
194
199
sed -i "4s/.*/ url \"https:\/\/github.com\/majd\/ipatool\/releases\/download\/v${{ needs.get_version.outputs.version }}\/ipatool-${{ needs.get_version.outputs.version }}-macos-arm64.tar.gz\"/" Casks/ipatool.rb
195
200
sed -i "5s/.*/ binary \"bin\/ipatool-${{ needs.get_version.outputs.version }}-macos-arm64\", target: \"ipatool\"/" Casks/ipatool.rb
0 commit comments