This is an automated email from the ASF dual-hosted git repository.

He-Pin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko.git


The following commit(s) were added to refs/heads/main by this push:
     new cfaec70e81 fix: replace broken scalafmt-native-action with 
coursier/setup-action (#3269)
cfaec70e81 is described below

commit cfaec70e817b6e28a3d77971339863ac1c1ca238
Author: He-Pin(kerr) <[email protected]>
AuthorDate: Mon Jun 29 05:36:08 2026 +0800

    fix: replace broken scalafmt-native-action with coursier/setup-action 
(#3269)
    
    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]

Reply via email to