-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (34 loc) · 992 Bytes
/
auto-casdiff-comment.yaml
File metadata and controls
39 lines (34 loc) · 992 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
38
39
name: Auto-comment PR with casdiff
on:
pull_request:
types: [opened, synchronize]
branches:
- main
paths:
- modules/sync/state.json
- modules/sync/*/*/state.json
permissions:
contents: read
pull-requests: write
jobs:
comment-changes:
runs-on: ubuntu-latest
if: github.repository == 'bufbuild/modules'
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0 # Need full history to compare branches
- name: Install Go
uses: actions/setup-go@v6
with:
go-version: 1.26.x
check-latest: true
cache: true
- name: Run commentprcasdiff
run: go run ./cmd/commentprcasdiff
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}
BASE_REF: ${{ github.event.pull_request.base.sha }}
HEAD_REF: ${{ github.event.pull_request.head.sha }}