-
Notifications
You must be signed in to change notification settings - Fork 16
35 lines (32 loc) · 993 Bytes
/
push.yaml
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
name: push
on:
push:
branches:
- main
paths:
- openfga/**/*.proto
- buf.md
- buf.lock
- README.md
workflow_dispatch:
permissions:
contents: read
jobs:
push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
with:
fetch-depth: 0
- uses: bufbuild/buf-setup-action@9990c72db080fa39cf561230b8d2d7b736681f85 # v1.30.1
with:
version: "1.28.1"
- uses: bufbuild/buf-push-action@a654ff18effe4641ebea4a4ce242c49800728459 # v1.2.0
with:
buf_token: ${{ secrets.BUF_TOKEN }}
- name: Send PagerDuty alert on failure
if: ${{ failure() }}
uses: miparnisari/action-pagerduty-alert@a6a738b712efa0e1a45b1b796c62f60fc30b5d99 # v0.3.2
with:
pagerduty-integration-key: ${{ secrets.PAGERDUTY_INTEGRATION_KEY }}
incident-summary: "Problem pushing OpenFGA Buf module to Buf Registry"