Repository navigation
Bump the npm_and_yarn group across 1 directory with 2 updates #978
Workflow file for this run
This file contains hidden or 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
| name: Validate asset images | |
| # Rejects malformed or risky image assets before they ship. | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| paths: | |
| - 'assets/**' | |
| - '.github/workflows/validate-asset-images.yml' | |
| # Dependency changes can break the validator. | |
| - 'package*.json' | |
| - 'src/assets/scripts/validate-asset-images.ts' | |
| - '.github/actions/node-npm-setup/action.yml' | |
| permissions: | |
| contents: read | |
| jobs: | |
| validate-asset-images: | |
| if: ${{ github.repository == 'github/docs-internal' || github.repository == 'github/docs' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repo | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - uses: ./.github/actions/node-npm-setup | |
| - name: Validate all asset images | |
| run: npm run validate-asset-images |