diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml index e8b993f..0b152df 100644 --- a/.github/workflows/shellcheck.yml +++ b/.github/workflows/shellcheck.yml @@ -35,4 +35,11 @@ jobs: severity: ${{ inputs.severity }} token: ${{ secrets.token }} + - if: ${{ always() }} + name: 📤 Upload artifact with shell-check defects in SARIF format + uses: actions/upload-artifact@v3 + with: + name: Differential shell-check SARIF + path: ${{ steps.shellcheck.outputs.sarif }} + ... diff --git a/actions/playwright-install/action.yml b/actions/playwright-install/action.yml index 9a70592..b9d3979 100644 --- a/actions/playwright-install/action.yml +++ b/actions/playwright-install/action.yml @@ -23,7 +23,7 @@ runs: id: playwright-config shell: bash run: | - echo "CURRENT_VERSION=$(npm ls @playwright/test | grep @playwright | sed 's/.*@//')" >> $GITHUB_OUTPUT + echo "CURRENT_VERSION=$(pnpm list -r @playwright/test | grep @playwright | sed -n 's/.*@playwright\/test //p' | head -n 1)" >> $GITHUB_OUTPUT RAW_BROWSERS="${{ inputs.browsers }}" BROWSERS=$(echo $RAW_BROWSERS | sed -r 's/[[:space:]]+/+/g') echo "BROWSERS=$BROWSERS" >> $GITHUB_OUTPUT