name: Vale action on: [pull_request] permissions: {} jobs: vale: name: runner / vale runs-on: ubuntu-latest permissions: contents: read pull-requests: write steps: - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 - name: Extract Vale version from pnpm-lock.yaml id: vale-version run: | # Extract version from lock file VERSION=$(awk -F"@|'" '/@vvago\/vale@/ {print $4}' pnpm-lock.yaml | head -n1) echo "Extracted Vale version: $VERSION" echo "vale_version=$VERSION" >> $GITHUB_OUTPUT - uses: errata-ai/vale-action@d89dee975228ae261d22c15adcd03578634d429c # v2.1.1 continue-on-error: true # GitHub Action flag needed until https://github.com/errata-ai/vale-action/issues/89 is fixed with: version: ${{ steps.vale-version.outputs.vale_version }} # Errors should be more visible fail_on_error: true # The other reports don't work, not really https://github.com/reviewdog/reviewdog#reporters reporter: github-pr-check # Required, set by GitHub actions automatically: # https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret token: ${{secrets.GITHUB_TOKEN}}