Bump js-yaml from 4.1.1 to 4.2.0 #841
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: Consitency checks | |
| on: | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.x | |
| - run: corepack enable | |
| - run: pnpm install --frozen-lockfile | |
| - run: | | |
| LABEL_NAME=Publish | |
| LABEL_URL=https://api.github.com/repos/Azure/autorest/issues/$PR_NUMBER/labels | |
| echo "Getting labels using $LABEL_URL" | |
| if curl -s "$LABEL_URL" | grep "\"name\": \"$LABEL_NAME\"" | |
| then | |
| echo "Publish label was included in the PR, won't be checking for changelog." | |
| else | |
| pnpm chronus verify || { echo 'If you meant to publish the changes, add the publish label to the pr.' ; exit 1; } | |
| fi | |
| env: | |
| PR_NUMBER: ${{ github.event.pull_request.number }} |