Skip to content

Commit

Permalink
Merge pull request #9 from AvaPL/version-detection-fix
Browse files Browse the repository at this point in the history
Changed version detection method, slightly improved output logs.
  • Loading branch information
AvaPL authored May 3, 2021
2 parents 18235ae + d885f41 commit 973ef1a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/testdata/.scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = 2.7.2
version = 3.0.0-RC1
5 changes: 4 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ runs:
steps:
- run: |
curl https://raw.githubusercontent.com/scalameta/scalafmt/master/bin/install-scalafmt-native.sh | \
sudo bash -s -- $(${{ github.action_path }}/version.sh ${{ inputs.conf-path }}) /usr/local/bin/scalafmt-native
sudo bash -s -- $(grep "version" ${{ inputs.conf-path }} | sed -E "s/version|=|\s*//g") /usr/local/bin/scalafmt-native
echo "=============================================================================="
echo "Config:"
cat ${{ inputs.conf-path }}
echo "=============================================================================="
echo "scalafmt-native -c ${{ inputs.conf-path }} ${{ inputs.args }}"
scalafmt-native -c ${{ inputs.conf-path }} ${{ inputs.args }}
Expand Down
8 changes: 0 additions & 8 deletions version.sh

This file was deleted.

0 comments on commit 973ef1a

Please # to comment.