He-Pin opened a new pull request, #3269: URL: https://github.com/apache/pekko/pull/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: ``` curl -sL https://raw.githubusercontent.com/scalameta/scalafmt/refs/tags/v3.7.17/bin/install-scalafmt-native.sh | bash -sv -- 3.11.1 ``` This script cannot download scalafmt-native 3.11.1 (the version specified in `.scalafmt.conf`), causing the action to fail before it even checks formatting. ### 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: ```yaml - name: Setup Coursier uses: coursier/setup-action@fd1707a76b027efdfb66ca79318b4d29b72e5a02 # v3.0.0 with: apps: scalafmt - name: Check project is formatted run: scalafmt --list --mode diff-ref=origin/main ``` The scalafmt 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 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
