File tree 1 file changed +11
-5
lines changed
1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -70,15 +70,18 @@ jobs:
70
70
- name : clone tap
71
71
run : |
72
72
# 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
76
76
git clone git@github.com:jesses-code-adventures/homebrew-tap.git
77
77
cd homebrew-tap
78
78
79
+ - name : replace version tag in url
80
+ run : |
79
81
# Use sed to replace version number in-place without creating a backup file
80
82
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 : |
82
85
# Extract the new URL from the file
83
86
URL=$(grep "url \"" Formula/excavator.rb | sed 's/.*url "\(.*\)".*/\1/')
84
87
@@ -88,10 +91,13 @@ jobs:
88
91
# Use sed to replace the sha256 line in-place
89
92
sed -i "s/sha256 .*/sha256 \"$SHA\"/" Formula/excavator.rb
90
93
94
+ - name : set uesr email and name
95
+ run : |
91
96
git config user.email "jesse@negativespacesounds.com"
92
97
git config user.name "GitHub Actions"
93
98
94
- # Add changes, commit, and push back to the repository
99
+ - name : push changes
100
+ run : |
95
101
git add Formula/excavator.rb
96
102
git commit -m "Update excavator to ${{ needs.check_tag.outputs.is_version_tag }}"
97
103
git push origin main # Adjust as needed to your branch name
You can’t perform that action at this time.
0 commit comments