This commit is contained in:
Darwin Cereska
2025-06-19 17:27:38 -04:00
parent 59c424b02e
commit 0ee47ce835
3 changed files with 8 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
name: Bump TTYmer Formula
name: Bump ttymer Formula
on:
workflow_dispatch:
@@ -12,6 +12,8 @@ jobs:
steps:
- name: Checkout tap repo
uses: actions/checkout@v3
with:
persist-credentials: true
- name: Fetch latest release from GitHub
id: fetch
@@ -32,7 +34,7 @@ jobs:
SHA256=$(sha256sum ttymer.tar.gz | awk '{ print $1 }')
echo "sha256=$SHA256" >> $GITHUB_OUTPUT
- name: Update Formula
- name: Update Formula (version & sha256 only)
run: |
VERSION=${{ steps.fetch.outputs.version }}
SHA256=${{ steps.compute.outputs.sha256 }}
@@ -40,7 +42,6 @@ jobs:
echo "Updating $FORMULA to version $VERSION"
sed -i "s|url \".*\"|url \"https://github.com/darwincereska/ttymer/archive/refs/tags/${VERSION}.tar.gz\"|g" "$FORMULA"
sed -i "s/sha256 \".*\"/sha256 \"$SHA256\"/g" "$FORMULA"
sed -i "s/version \".*\"/version \"${VERSION#v}\"/g" "$FORMULA" || echo "No version field to replace"

View File

@@ -12,6 +12,8 @@ jobs:
steps:
- name: Checkout tap repo
uses: actions/checkout@v3
with:
persist-credentials: true
- name: Fetch latest release from GitHub
id: fetch
@@ -32,7 +34,7 @@ jobs:
SHA256=$(sha256sum xswitcher.tar.gz | awk '{ print $1 }')
echo "sha256=$SHA256" >> $GITHUB_OUTPUT
- name: Update Formula
- name: Update Formula (version & sha256 only)
run: |
VERSION=${{ steps.fetch.outputs.version }}
SHA256=${{ steps.compute.outputs.sha256 }}
@@ -40,7 +42,6 @@ jobs:
echo "Updating $FORMULA to version $VERSION"
sed -i "s|url \".*\"|url \"https://github.com/darwincereska/xswitcher/archive/refs/tags/${VERSION}.tar.gz\"|g" "$FORMULA"
sed -i "s/sha256 \".*\"/sha256 \"$SHA256\"/g" "$FORMULA"
sed -i "s/version \".*\"/version \"${VERSION#v}\"/g" "$FORMULA" || echo "No version field to replace"

View File

@@ -2,7 +2,7 @@ class Ttymer < Formula
version "1.0.2"
desc "A terminal timer app written in Go"
homepage "https://github.com/darwincereska/ttymer"
url "https://github.com/darwincereska/ttymer/archive/refs/tags/v1.0.2.tar.gz"
url "https://github.com/darwincereska/ttymer/archive/refs/tags/v#{version}.tar.gz"
sha256 "c1cfddfb7811c09a8adac51e2d0a2baf7db9b593f52b9e7dff8dc9757b830bf2"
license "MIT"