From b3c4b0295bb00ddb7ac63f3cbfb0f0cca17877ce Mon Sep 17 00:00:00 2001 From: Maria Ines Parnisari Date: Thu, 5 Sep 2024 20:54:44 -0700 Subject: [PATCH] update github workflows --- .github/workflows/push.yaml | 4 ++-- .github/workflows/review.yaml | 20 +++++++++++--------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index 24185a8e..f52698f4 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -21,9 +21,9 @@ jobs: with: fetch-depth: 0 - - uses: bufbuild/buf-setup-action@35c243d7f2a909b1d4e40399b348a7fdab27d78d # v1.34.0 - - uses: bufbuild/buf-push-action@a654ff18effe4641ebea4a4ce242c49800728459 # v1.2.0 + - uses: bufbuild/buf-action@d4b43256b3a511e94e6c0d38d478e1bd39f8690e # v1.0.1 with: + push: true buf_token: ${{ secrets.BUF_TOKEN }} - name: Send PagerDuty alert on failure if: ${{ failure() }} diff --git a/.github/workflows/review.yaml b/.github/workflows/review.yaml index 7c4419e0..75182b59 100644 --- a/.github/workflows/review.yaml +++ b/.github/workflows/review.yaml @@ -13,15 +13,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 + - uses: bufbuild/buf-action@d4b43256b3a511e94e6c0d38d478e1bd39f8690e # v1.0.1 with: - fetch-depth: 0 - - uses: bufbuild/buf-setup-action@35c243d7f2a909b1d4e40399b348a7fdab27d78d # v1.34.0 - - uses: bufbuild/buf-lint-action@06f9dd823d873146471cfaaf108a993fe00e5325 # v1.1.1 - - uses: bufbuild/buf-breaking-action@c57b3d842a5c3f3b454756ef65305a50a587c5ba # v1.1.4 - with: - # The 'main' branch of the GitHub repository that defines the module. - against: "https://github.com/${GITHUB_REPOSITORY}.git#branch=${GITHUB_BASE_REF}" - - run: buf format -d --exit-code + format: true + lint: true + breaking: true + pr_comment: false + input: 'proto' + breaking_against: "https://github.com/openfga/api.git#branch=main,subdir=proto" diff-openapi: runs-on: ubuntu-latest @@ -29,7 +28,10 @@ jobs: - uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 with: fetch-depth: 0 - - uses: bufbuild/buf-setup-action@35c243d7f2a909b1d4e40399b348a7fdab27d78d # v1.34.0 + # Install BUF CLI + - uses: bufbuild/buf-action@d4b43256b3a511e94e6c0d38d478e1bd39f8690e # v1.0.1 + with: + setup_only: true - name: "Generate OpenAPI & Diff" run: | make all