This is an automated email from the ASF dual-hosted git repository. He-Pin pushed a commit to branch worktree-fix+scalafmt-ci in repository https://gitbox.apache.org/repos/asf/pekko.git
commit 358fd62a620741eb068b3b108d35968e37007614 Author: 虎鸣 <[email protected]> AuthorDate: Mon Jun 29 04:10:56 2026 +0800 fix: replace broken scalafmt-native-action with coursier/setup-action Motivation: The "Code is formatted" CI job fails because jrouly/scalafmt-native-action@v5 has a hardcoded install script URL pointing to scalafmt v3.7.17, which cannot download scalafmt-native 3.11.1 (the version specified in .scalafmt.conf). Modification: Replace jrouly/scalafmt-native-action with coursier/setup-action (already used in link-validator.yml) to install scalafmt via Coursier, then run scalafmt directly. The version is read from .scalafmt.conf automatically. Result: The scalafmt CI check installs scalafmt reliably via Coursier and is no longer dependent on a third-party action with stale install script URLs. Tests: Not run - CI workflow change only References: None - CI infrastructure fix --- .github/workflows/format.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index da48cdfe25..b6f569ad22 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -34,7 +34,10 @@ jobs: fetch-depth: 0 persist-credentials: false - - name: Check project is formatted - uses: jrouly/scalafmt-native-action@a9c8e1032a02004c425d53ef8ce420fe2179eba7 # v5 + - name: Setup Coursier + uses: coursier/setup-action@fd1707a76b027efdfb66ca79318b4d29b72e5a02 # v3.0.0 with: - arguments: '--list --mode diff-ref=origin/main' + apps: scalafmt + + - name: Check project is formatted + run: scalafmt --list --mode diff-ref=origin/main --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
