mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-12-28 17:14:39 +00:00
Fixes #8549 This also brings the release tip workflow more in line with the release tag workflow by using a setup job to create outputs that are reused by the other jobs. https://ampcode.com/threads/T-e2d431ad-8be8-46d2-aaa3-9fae71f9ff31
20 lines
498 B
Plaintext
Executable File
20 lines
498 B
Plaintext
Executable File
#!/usr/bin/env nu
|
|
|
|
# Check if a given commit SHA has a corresponding tip release.
|
|
#
|
|
# This does not validate that the commit SHA is valid for the
|
|
# Ghostty repository, only that a tip release exists for it.
|
|
def main [
|
|
commit: string, # The full length commit SHA
|
|
] {
|
|
let url = $"https://tip.files.ghostty.org/($commit)/ghostty-macos-universal.zip"
|
|
|
|
try {
|
|
http head $url
|
|
exit 0
|
|
} catch {
|
|
print -e $"The SHA ($commit) does not have a corresponding tip release."
|
|
exit 1
|
|
}
|
|
}
|