Add Chronus CI workflow and update changelog docs to reference azpysdk changelog
#8
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: Chronus Verify | |
| on: | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - "sdk/*/*/**" | |
| jobs: | |
| chronus-verify: | |
| name: Verify Chronus Change Descriptions | |
| if: >- | |
| github.event.pull_request.user.login != 'azure-sdk' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # needed so chronus can diff against base branch | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| cache: npm | |
| cache-dependency-path: .github/chronus/package-lock.json | |
| - name: Install pinned dependencies | |
| run: npm ci | |
| working-directory: .github/chronus | |
| - name: Run chronus verify | |
| run: .github/chronus/node_modules/.bin/chronus verify | |
| - name: Chronus verification failed – see docs | |
| if: failure() | |
| run: | | |
| echo "::error::Chronus verification failed. Add a change description with 'azpysdk changelog add' (or 'npx chronus add' if you prefer raw Chronus)." | |
| echo "::error::See https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/changelog_updates.md for instructions." |