diff --git a/.github/workflows/release-please.yaml b/.github/workflows/release-please.yaml deleted file mode 100644 index f83507b..0000000 --- a/.github/workflows/release-please.yaml +++ /dev/null @@ -1,31 +0,0 @@ ---- -name: release-please - -on: # yamllint disable-line rule:truthy - push: - branches: [main] - -permissions: - contents: write - pull-requests: write - -jobs: - release-please: - name: Open/update the release PR - runs-on: ubuntu-latest - steps: - - - uses: actions/checkout@v7 - with: - fetch-tags: true - - - # Unlike rubyists/linear-cli's own release-please setup, this tap - # has no build-binaries-first step to race against GitHub's - # Immutable Releases - a formula bump is just text, so - # release-please can tag/release normally, no skip-github-release - # + custom atomic-tagging job needed. - uses: googleapis/release-please-action@v5 - with: - config-file: .release-please-config.json - manifest-file: .release-please-manifest.json - token: ${{ secrets.RELEASE_PLEASE_TOKEN }} diff --git a/.release-please-config.json b/.release-please-config.json deleted file mode 100644 index a4cd9ba..0000000 --- a/.release-please-config.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "packages": { - "Formula/linear-cli": { - "release-type": "simple", - "version-file": ".version", - "changelog-path": "CHANGELOG.md" - } - }, - "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" -} diff --git a/.release-please-manifest.json b/.release-please-manifest.json deleted file mode 100644 index 813fa74..0000000 --- a/.release-please-manifest.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "Formula/linear-cli": "0.1.0" -} diff --git a/Formula/linear-cli/.version b/Formula/linear-cli/.version index 6e8bf73..88c5fb8 100644 --- a/Formula/linear-cli/.version +++ b/Formula/linear-cli/.version @@ -1 +1 @@ -0.1.0 +1.4.0 diff --git a/Formula/linear-cli/CHANGELOG.md b/Formula/linear-cli/CHANGELOG.md deleted file mode 100644 index 825c32f..0000000 --- a/Formula/linear-cli/CHANGELOG.md +++ /dev/null @@ -1 +0,0 @@ -# Changelog diff --git a/Formula/linear-cli/linear-cli.rb b/Formula/linear-cli/linear-cli.rb index 5d9281f..d3b921e 100644 --- a/Formula/linear-cli/linear-cli.rb +++ b/Formula/linear-cli/linear-cli.rb @@ -3,16 +3,23 @@ class LinearCli < Formula homepage "https://github.com/rubyists/linear-cli" license "WTFPL" + # The one place the version lives - rubyists/linear-cli's own + # homebrew-tap-bump workflow job writes this file directly to mirror + # that repo's release tag exactly. Everything below interpolates from + # it rather than repeating the version in each url, so there's nothing + # else to keep in sync by hand. + version File.read(File.expand_path(".version", __dir__)).chomp + on_macos do on_arm do - url "https://github.com/rubyists/linear-cli/releases/download/v1.4.0/lc_macos_aarch64.tar.gz" + url "https://github.com/rubyists/linear-cli/releases/download/v#{version}/lc_macos_aarch64.tar.gz" sha256 "7f63650ec3180ea8fea4ce797a59fbfc2a462f50e070ebee778ec2a0fb7c9e0e" end end on_linux do on_intel do - url "https://github.com/rubyists/linear-cli/releases/download/v1.4.0/lc_linux_x86_64.tar.gz" + url "https://github.com/rubyists/linear-cli/releases/download/v#{version}/lc_linux_x86_64.tar.gz" sha256 "2ab8355940245cbf6bd7fb77ea5d89e2c39cdf80de5127b371698de99a01180e" end end