mirror of
https://github.com/darwincereska/homebrew-software.git
synced 2026-02-12 04:04:41 -05:00
fix
This commit is contained in:
7
.github/workflows/bump-ttymer.yml
vendored
7
.github/workflows/bump-ttymer.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Bump TTYmer Formula
|
name: Bump ttymer Formula
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -12,6 +12,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout tap repo
|
- name: Checkout tap repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
persist-credentials: true
|
||||||
|
|
||||||
- name: Fetch latest release from GitHub
|
- name: Fetch latest release from GitHub
|
||||||
id: fetch
|
id: fetch
|
||||||
@@ -32,7 +34,7 @@ jobs:
|
|||||||
SHA256=$(sha256sum ttymer.tar.gz | awk '{ print $1 }')
|
SHA256=$(sha256sum ttymer.tar.gz | awk '{ print $1 }')
|
||||||
echo "sha256=$SHA256" >> $GITHUB_OUTPUT
|
echo "sha256=$SHA256" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Update Formula
|
- name: Update Formula (version & sha256 only)
|
||||||
run: |
|
run: |
|
||||||
VERSION=${{ steps.fetch.outputs.version }}
|
VERSION=${{ steps.fetch.outputs.version }}
|
||||||
SHA256=${{ steps.compute.outputs.sha256 }}
|
SHA256=${{ steps.compute.outputs.sha256 }}
|
||||||
@@ -40,7 +42,6 @@ jobs:
|
|||||||
|
|
||||||
echo "Updating $FORMULA to version $VERSION"
|
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/sha256 \".*\"/sha256 \"$SHA256\"/g" "$FORMULA"
|
||||||
sed -i "s/version \".*\"/version \"${VERSION#v}\"/g" "$FORMULA" || echo "No version field to replace"
|
sed -i "s/version \".*\"/version \"${VERSION#v}\"/g" "$FORMULA" || echo "No version field to replace"
|
||||||
|
|
||||||
|
|||||||
5
.github/workflows/bump-xswitcher.yml
vendored
5
.github/workflows/bump-xswitcher.yml
vendored
@@ -12,6 +12,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout tap repo
|
- name: Checkout tap repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
persist-credentials: true
|
||||||
|
|
||||||
- name: Fetch latest release from GitHub
|
- name: Fetch latest release from GitHub
|
||||||
id: fetch
|
id: fetch
|
||||||
@@ -32,7 +34,7 @@ jobs:
|
|||||||
SHA256=$(sha256sum xswitcher.tar.gz | awk '{ print $1 }')
|
SHA256=$(sha256sum xswitcher.tar.gz | awk '{ print $1 }')
|
||||||
echo "sha256=$SHA256" >> $GITHUB_OUTPUT
|
echo "sha256=$SHA256" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Update Formula
|
- name: Update Formula (version & sha256 only)
|
||||||
run: |
|
run: |
|
||||||
VERSION=${{ steps.fetch.outputs.version }}
|
VERSION=${{ steps.fetch.outputs.version }}
|
||||||
SHA256=${{ steps.compute.outputs.sha256 }}
|
SHA256=${{ steps.compute.outputs.sha256 }}
|
||||||
@@ -40,7 +42,6 @@ jobs:
|
|||||||
|
|
||||||
echo "Updating $FORMULA to version $VERSION"
|
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/sha256 \".*\"/sha256 \"$SHA256\"/g" "$FORMULA"
|
||||||
sed -i "s/version \".*\"/version \"${VERSION#v}\"/g" "$FORMULA" || echo "No version field to replace"
|
sed -i "s/version \".*\"/version \"${VERSION#v}\"/g" "$FORMULA" || echo "No version field to replace"
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ class Ttymer < Formula
|
|||||||
version "1.0.2"
|
version "1.0.2"
|
||||||
desc "A terminal timer app written in Go"
|
desc "A terminal timer app written in Go"
|
||||||
homepage "https://github.com/darwincereska/ttymer"
|
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"
|
sha256 "c1cfddfb7811c09a8adac51e2d0a2baf7db9b593f52b9e7dff8dc9757b830bf2"
|
||||||
license "MIT"
|
license "MIT"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user