-
Notifications
You must be signed in to change notification settings - Fork 3.3k
46 lines (39 loc) · 1.31 KB
/
chronus-verify.yml
File metadata and controls
46 lines (39 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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: pnpm/action-setup@v4
# SHA corresponds to pnpm/action-setup@v4
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm
cache-dependency-path: .github/pnpm-lock.yaml
- name: Install pinned dependencies
run: pnpm install --frozen-lockfile
working-directory: .github
- name: Run chronus verify
run: pnpm chronus verify
working-directory: .github
- name: Chronus verification failed – see docs
if: failure()
run: |
echo "::error::Chronus verification failed. Add a change description with 'npx chronus add'."
echo "::error::See https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/changelog_updates.md for instructions."