We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75e2be3 commit b939392Copy full SHA for b939392
1 file changed
.github/workflows/publish.yml
@@ -115,7 +115,7 @@ jobs:
115
end
116
117
checksums.each do |artifact, checksum|
118
- pattern = /(\Q#{artifact}\E"\n\s+sha256 ")([0-9a-f]{64})(")/
+ pattern = /(#{Regexp.escape(artifact)}"\n\s+sha256 ")([0-9a-f]{64})(")/
119
unless text.sub!(pattern) { "#{$1}#{checksum}#{$3}" }
120
abort("Failed to update checksum for #{artifact}")
121
0 commit comments