diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8c6ddf8..c4fc98a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,28 +9,10 @@ jobs: lint: runs-on: ubuntu-latest - permissions: - contents: read - pull-requests: write steps: - name: Checkout uses: actions/checkout@v4 - name: Lint - id: lint - continue-on-error: true run: npx --yes github:AdobeDocs/adp-devsite-utils runLint -v - - - name: Post Linter Report to PR - if: always() - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - PR_ID: ${{ github.event.pull_request.number }} - GITHUB_REPOSITORY: ${{ github.repository }} - run: | - npm install --no-save github:AdobeDocs/adp-devsite-scripts - node node_modules/adp-devsite-scripts/linter-bot/postLinterReport.js - - - name: Fail if linter found errors - if: steps.lint.outcome == 'failure' - run: exit 1 \ No newline at end of file + \ No newline at end of file