Skip to content

Commit 59ee5e8

Browse files
ci: break up homebrew steps
1 parent 4581fe9 commit 59ee5e8

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/release.yml

+11-5
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,18 @@ jobs:
7070
- name: clone tap
7171
run: |
7272
# Clone the repository
73-
ssh -vT git@github.com
74-
console=`tty`
75-
ln -s $console /dev/tty
73+
# ssh -vT git@github.com
74+
# console=`tty`
75+
# ln -s $console /dev/tty
7676
git clone git@github.com:jesses-code-adventures/homebrew-tap.git
7777
cd homebrew-tap
7878
79+
- name: replace version tag in url
80+
run: |
7981
# Use sed to replace version number in-place without creating a backup file
8082
sed -i -E "s/v[0-9]+\.[0-9]+\.[0-9]+(-lw)?/${{ needs.check_tag.outputs.is_version_tag }}/g" Formula/excavator.rb
81-
83+
- name: replace sha256 checksum
84+
run: |
8285
# Extract the new URL from the file
8386
URL=$(grep "url \"" Formula/excavator.rb | sed 's/.*url "\(.*\)".*/\1/')
8487
@@ -88,10 +91,13 @@ jobs:
8891
# Use sed to replace the sha256 line in-place
8992
sed -i "s/sha256 .*/sha256 \"$SHA\"/" Formula/excavator.rb
9093
94+
- name: set uesr email and name
95+
run: |
9196
git config user.email "jesse@negativespacesounds.com"
9297
git config user.name "GitHub Actions"
9398
94-
# Add changes, commit, and push back to the repository
99+
- name: push changes
100+
run: |
95101
git add Formula/excavator.rb
96102
git commit -m "Update excavator to ${{ needs.check_tag.outputs.is_version_tag }}"
97103
git push origin main # Adjust as needed to your branch name

0 commit comments

Comments
 (0)