From 7e48e91d52eb4e9e5f26d105f7cee99f7b31496a Mon Sep 17 00:00:00 2001 From: Darwin Cereska Date: Thu, 19 Jun 2025 17:32:31 -0400 Subject: [PATCH] fix --- .github/workflows/bump-ttymer.yml | 10 ++++++---- .github/workflows/bump-xswitcher.yml | 10 ++++++---- Formula/ttymer.rb | 2 +- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/bump-ttymer.yml b/.github/workflows/bump-ttymer.yml index 4cbbdc2..43483b1 100644 --- a/.github/workflows/bump-ttymer.yml +++ b/.github/workflows/bump-ttymer.yml @@ -15,7 +15,7 @@ jobs: with: persist-credentials: true - - name: Fetch latest release from GitHub + - name: Fetch latest release tag from GitHub id: fetch uses: actions/github-script@v6 with: @@ -25,12 +25,14 @@ jobs: repo: 'ttymer' }); core.setOutput("version", release.data.tag_name); - core.setOutput("url", release.data.tarball_url); - - name: Download tarball and compute SHA256 + - name: Download archive from refs/tags and compute SHA256 id: compute run: | - curl -L -o ttymer.tar.gz "${{ steps.fetch.outputs.url }}" + VERSION=${{ steps.fetch.outputs.version }} + ARCHIVE_URL="https://github.com/darwincereska/ttymer/archive/refs/tags/${VERSION}.tar.gz" + echo "Downloading archive: $ARCHIVE_URL" + curl -L -o ttymer.tar.gz "$ARCHIVE_URL" SHA256=$(sha256sum ttymer.tar.gz | awk '{ print $1 }') echo "sha256=$SHA256" >> $GITHUB_OUTPUT diff --git a/.github/workflows/bump-xswitcher.yml b/.github/workflows/bump-xswitcher.yml index ff7ca8c..1dbb53d 100644 --- a/.github/workflows/bump-xswitcher.yml +++ b/.github/workflows/bump-xswitcher.yml @@ -15,7 +15,7 @@ jobs: with: persist-credentials: true - - name: Fetch latest release from GitHub + - name: Fetch latest release tag from GitHub id: fetch uses: actions/github-script@v6 with: @@ -25,12 +25,14 @@ jobs: repo: 'xswitcher' }); core.setOutput("version", release.data.tag_name); - core.setOutput("url", release.data.tarball_url); - - name: Download tarball and compute SHA256 + - name: Download archive from refs/tags and compute SHA256 id: compute run: | - curl -L -o xswitcher.tar.gz "${{ steps.fetch.outputs.url }}" + VERSION=${{ steps.fetch.outputs.version }} + ARCHIVE_URL="https://github.com/darwincereska/xswitcher/archive/refs/tags/${VERSION}.tar.gz" + echo "Downloading archive: $ARCHIVE_URL" + curl -L -o xswitcher.tar.gz "$ARCHIVE_URL" SHA256=$(sha256sum xswitcher.tar.gz | awk '{ print $1 }') echo "sha256=$SHA256" >> $GITHUB_OUTPUT diff --git a/Formula/ttymer.rb b/Formula/ttymer.rb index 85a2958..ddb38bf 100644 --- a/Formula/ttymer.rb +++ b/Formula/ttymer.rb @@ -1,5 +1,5 @@ class Ttymer < Formula - version "1.0.2" + version "1.0.1" desc "A terminal timer app written in Go" homepage "https://github.com/darwincereska/ttymer" url "https://github.com/darwincereska/ttymer/archive/refs/tags/v#{version}.tar.gz"