File tree 1 file changed +1
-10
lines changed
1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -71,22 +71,13 @@ jobs:
71
71
run : |
72
72
git clone git@github.com:jesses-code-adventures/homebrew-tap.git
73
73
74
- - name : replace version tag in url
74
+ - name : replace url and sha
75
75
run : |
76
76
cd homebrew-tap
77
- ls
78
77
sed -i -E "s/v[0-9]+\.[0-9]+\.[0-9]+(-lw)?/${{ needs.check_tag.outputs.is_version_tag }}/g" Formula/excavator.rb
79
- - name : replace sha256 checksum
80
- run : |
81
- # Extract the new URL from the file
82
78
URL=$(grep "url \"" Formula/excavator.rb | sed 's/.*url "\(.*\)".*/\1/')
83
-
84
- # Fetch the tarball and compute its SHA256 hash
85
79
SHA=$(curl -Ls "$URL" | shasum -a 256 | cut -d ' ' -f 1)
86
-
87
- # Use sed to replace the sha256 line in-place
88
80
sed -i "s/sha256 .*/sha256 \"$SHA\"/" Formula/excavator.rb
89
-
90
81
- name : set uesr email and name
91
82
run : |
92
83
git config user.email "jesse@negativespacesounds.com"
You can’t perform that action at this time.
0 commit comments