forked from GoogleCloudPlatform/magic-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 981 Bytes
/
changelog-checker.yml
File metadata and controls
37 lines (31 loc) · 981 Bytes
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
name: changelog-checker
permissions: read-all
on:
pull_request:
types: [opened, edited, synchronize]
jobs:
check:
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.2
with:
path: repo
- name: Set up Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: '^1.24'
cache-dependency-path: |
repo/tools/go-changelog/go.mod
- name: Build
run: |
cd repo/tools/go-changelog/cmd/changelog-pr-body-check
go build
- name: Check Changelog
env:
GITHUB_OWNER: GoogleCloudPlatform
GITHUB_REPO: magic-modules
GITHUB_TOKEN: ${{github.token}}
run: |
cd repo/tools/go-changelog/cmd/changelog-pr-body-check
./changelog-pr-body-check ${{github.event.pull_request.number}}