Skip to content

Commit 2c719a5

Browse files
committed
fix: validate source URL and SHA256 presence in formula
1 parent 2b4e904 commit 2c719a5

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,8 +519,15 @@ jobs:
519519
exit 1
520520
fi
521521
522-
if ! grep -q "version \"${{ needs.validate-version.outputs.version }}\"" ten-second-tom.rb; then
523-
echo "❌ Error: Version not found in formula"
522+
# Check that source URL contains the version
523+
if ! grep -q "archive/refs/tags/v${{ needs.validate-version.outputs.version }}.tar.gz" ten-second-tom.rb; then
524+
echo "❌ Error: Version not found in source URL"
525+
exit 1
526+
fi
527+
528+
# Check that source has SHA256
529+
if ! grep -q "sha256 \"" ten-second-tom.rb; then
530+
echo "❌ Error: Source SHA256 not found in formula"
524531
exit 1
525532
fi
526533

0 commit comments

Comments
 (0)