From d5f49fccec319553e979930b96a0a1fe5c395b8a Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Mon, 31 Aug 2026 16:05:01 -0700 Subject: [PATCH] Use rubyatscale/rubyfmt-action instead of a hand-rolled install step Replaces the manual 'download+install rubyfmt v0.14.1, then run rubyfmt --check' steps with the published rubyatscale/rubyfmt-action GitHub Action (https://github.com/rubyatscale/rubyfmt-action), which downloads a pinned, checksum-verified rubyfmt release. This also picks up newer rubyfmt releases automatically (the action currently defaults to 0.14.2-10) instead of staying pinned to 0.14.1. --- .github/workflows/ci.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0b131d2..76c57c7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,9 +18,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 - - name: Install rubyfmt - run: | - curl -sL "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/fables-tales/rubyfmt/releases/download/v0.14.1/rubyfmt-v0.14.1-Linux-x86_64.tar.gz" | tar xz - sudo install -m 755 tmp/releases/v0.14.1-Linux/rubyfmt /usr/local/bin/rubyfmt - - name: Check formatting - run: rubyfmt --check lib/ spec/ Rakefile pack_stats.gemspec Gemfile + - name: Rubyfmt + uses: rubyatscale/rubyfmt-action@v1 + with: + paths: | + lib/ + spec/ + Rakefile + pack_stats.gemspec + Gemfile