ci(action): update actions/checkout digest to 9bb5618 (#906) #374
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"on": | |
push: | |
branches: | |
- main | |
name: Lint repository contents | |
jobs: | |
lint_repo: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4 | |
with: | |
token: ${{ secrets.OCTOKITBOT_PAT }} | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: npm | |
- run: npm ci | |
- run: echo "./node_modules/.bin" >> $GITHUB_PATH | |
- run: ./bin/format-with-prettier.mts | |
- run: git diff-index --quiet HEAD | |
- if: failure() | |
run: | | |
git config user.email "33075676+octokitbot@users.noreply.github.com" | |
git config user.name "Octokit Bot" | |
git add . | |
git commit -m "style: lint JSON files" && git push || true |