diff --git a/.github/actions/changed_files/action.yml b/.github/actions/changed_files/action.yml index f2fc336b3..60a39deb8 100644 --- a/.github/actions/changed_files/action.yml +++ b/.github/actions/changed_files/action.yml @@ -39,4 +39,4 @@ runs: run: | files_pretty=$(git diff --name-only --diff-filter=ACMR -r HEAD^1...HEAD | grep '${{inputs.file-extensions}}' || test $? = 1;) printf "🎴 Changed files: \n$files_pretty" - echo "files=$(echo ${files_pretty} | xargs)" >> $GITHUB_ENV + echo "files=$(echo ${files_pretty} | xargs)" >> $GITHUB_OUTPUT diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 5145bd761..0a3111f7c 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -59,16 +59,21 @@ jobs: with: file-extensions: \.js$|\.js.erb$ + - name: Trial and error + if: ${{ steps.eslint-changed.outputs.changed-files }} != "" + run: 'echo "Changed files: aa${{ steps.eslint-changed.outputs.changed-files }}bb"' + - name: Setup Node.js - if: ${{ steps.eslint-changed.outputs.changed-files }} != '' + if: ${{ steps.eslint-changed.outputs.changed-files }} != "" uses: actions/setup-node@v4 with: node-version: '20' # End of Life (EOL): April 2026 - name: Install dependencies - if: ${{ steps.eslint-changed.outputs.changed-files }} != '' + if: ${{ steps.eslint-changed.outputs.changed-files }} != "" run: yarn install - name: Run ESLint - if: ${{ steps.eslint-changed.outputs.changed-files }} != '' + if: ${{ steps.eslint-changed.outputs.changed-files }} != "" run: yarn run eslint --ignore-path .gitignore --max-warnings 0 ${{ steps.eslint-changed.outputs.changed-files }} + \ No newline at end of file