diff --git a/action.yml b/action.yml index 67a6925..1f0c54c 100644 --- a/action.yml +++ b/action.yml @@ -1,8 +1,9 @@ -name: 'deps-diff' -description: 'Clojure dependencies differ' +name: "deps-diff" +description: "Clojure dependencies differ" +author: "Hyunwoo Nam" branding: - icon: 'package' - color: 'green' + icon: "package" + color: "green" inputs: base: @@ -16,7 +17,7 @@ inputs: aliases: required: false description: aliases to create basis - default: 'nil' + default: "nil" format: required: false description: output format. edn (default) OR markdown @@ -30,13 +31,13 @@ outputs: value: ${{ steps.diff.outputs.EXIT_CODE }} runs: - using: 'composite' + using: "composite" steps: - name: Prepare java uses: actions/setup-java@v3 with: - distribution: 'corretto' - java-version: '17' + distribution: "corretto" + java-version: "17" - name: Install clojure tools uses: DeLaGuardo/setup-clojure@12.1 @@ -79,18 +80,18 @@ runs: shell: bash run: | set +e - + DEPS_DIFF=$(clojure -Sdeps '{:deps {namenu/deps-diff {:local/root "${{ github.action_path }}"}}}' \ -X namenu.deps-diff/diff \ :base '"__base.edn"' \ :target '"__target.edn"' \ :format :${{ inputs.format }}) EXIT_CODE=$? - + echo "DEPS_DIFF<> $GITHUB_OUTPUT echo "$DEPS_DIFF" >> $GITHUB_OUTPUT echo "EOF" >> $GITHUB_OUTPUT - + echo "EXIT_CODE=$EXIT_CODE" >> $GITHUB_OUTPUT # always exit with 0 # exit $EXIT_CODE diff --git a/deps-diff/LICENSE b/deps-diff/LICENSE deleted file mode 100644 index 703ac27..0000000 --- a/deps-diff/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2023 Hyunwoo Nam - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE.