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"