From adfa878dad060825b62908a8a5984af9254c9682 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Augusto=20Elesb=C3=A3o?= Date: Tue, 21 May 2024 14:35:46 +0200 Subject: [PATCH 1/7] fix(proto): install buf v1.32 to push proto files --- .github/workflows/proto-registry.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/proto-registry.yaml b/.github/workflows/proto-registry.yaml index 41f64842..b199219d 100644 --- a/.github/workflows/proto-registry.yaml +++ b/.github/workflows/proto-registry.yaml @@ -6,15 +6,21 @@ on: branches: [main] tags: [v*] paths: - - "proto/**" + - proto/** + pull_request: + types: [opened, reopened] + paths: + - proto/** + - .github/workflows/proto-registry.yaml jobs: push: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: bufbuild/buf-setup-action@v1 + - uses: bufbuild/buf-setup-action@v1.32 - uses: bufbuild/buf-push-action@v1 with: input: proto + draft: ${{ github.ref_name != 'main'}} buf_token: ${{ secrets.BUF_TOKEN }} From 7efb01e4e4f6cd7e02045f9a425d8dcb640046aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Augusto=20Elesb=C3=A3o?= Date: Tue, 21 May 2024 14:40:15 +0200 Subject: [PATCH 2/7] fix(proto): use complete action version --- .github/workflows/proto-registry.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/proto-registry.yaml b/.github/workflows/proto-registry.yaml index b199219d..7d67699e 100644 --- a/.github/workflows/proto-registry.yaml +++ b/.github/workflows/proto-registry.yaml @@ -18,7 +18,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: bufbuild/buf-setup-action@v1.32 + - uses: bufbuild/buf-setup-action@v1.32.0 + - uses: bufbuild/buf-lint-action@v1 + with: + input: proto - uses: bufbuild/buf-push-action@v1 with: input: proto From 7ed72df7914f53b1600a30cd3f552c766ab60fac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Augusto=20Elesb=C3=A3o?= Date: Tue, 21 May 2024 14:41:32 +0200 Subject: [PATCH 3/7] ci(proto): build on every pr commit --- .github/workflows/proto-registry.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/proto-registry.yaml b/.github/workflows/proto-registry.yaml index 7d67699e..a89572f0 100644 --- a/.github/workflows/proto-registry.yaml +++ b/.github/workflows/proto-registry.yaml @@ -8,7 +8,6 @@ on: paths: - proto/** pull_request: - types: [opened, reopened] paths: - proto/** - .github/workflows/proto-registry.yaml From 4bb054ba6d73be7ca1552dd55b92f562c3df31da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Augusto=20Elesb=C3=A3o?= Date: Tue, 21 May 2024 19:23:08 +0200 Subject: [PATCH 4/7] fix(proto): use previous buf version --- .github/workflows/proto-registry.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/proto-registry.yaml b/.github/workflows/proto-registry.yaml index a89572f0..084e160e 100644 --- a/.github/workflows/proto-registry.yaml +++ b/.github/workflows/proto-registry.yaml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: bufbuild/buf-setup-action@v1.32.0 + - uses: bufbuild/buf-setup-action@v1.31.0 - uses: bufbuild/buf-lint-action@v1 with: input: proto From 1a6bb32a4723c9e97f05a53e593252541bb231ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Augusto=20Elesb=C3=A3o?= Date: Tue, 21 May 2024 19:25:14 +0200 Subject: [PATCH 5/7] ci(proto): remove lint step --- .github/workflows/proto-registry.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/proto-registry.yaml b/.github/workflows/proto-registry.yaml index 084e160e..2e9e1acc 100644 --- a/.github/workflows/proto-registry.yaml +++ b/.github/workflows/proto-registry.yaml @@ -18,9 +18,6 @@ jobs: steps: - uses: actions/checkout@v4 - uses: bufbuild/buf-setup-action@v1.31.0 - - uses: bufbuild/buf-lint-action@v1 - with: - input: proto - uses: bufbuild/buf-push-action@v1 with: input: proto From c8bfcb2d30a10f2034af7d8999bd7657735d0e31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Augusto=20Elesb=C3=A3o?= Date: Tue, 21 May 2024 19:35:24 +0200 Subject: [PATCH 6/7] chore: add changes --- CHANGELOG.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 005cbbf4..34cbd1a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,22 +30,26 @@ Contains all the PRs that improved the code without changing the behaviors. ## [Unreleased] -### Added +### Fixed + - [#571](https://github.com/archway-network/archway/pull/571) - Automatically publish proto files to buf.build -### Changed +## [v7.0.1](https://github.com/archway-network/archway/releases/tag/v7.0.1) -### Deprecated +### Added -### Removed +- [#571](https://github.com/archway-network/archway/pull/571) - Automatically +publish proto files to buf.build ### Fixed + - [#568](https://github.com/archway-network/archway/pull/568) - Update Swagger doc and config to include CWICA and CWErrors modules - [#570](https://github.com/archway-network/archway/pull/570) - Fix the Docker.deprecated file to build - [#569](https://github.com/archway-network/archway/pull/569) - Audit remidiations for x/cwerrors and x/cwica ### Improvements + - [#567](https://github.com/archway-network/archway/pull/567) - Remove redundant params fetching in SaveCallback ## [v7.0.0](https://github.com/archway-network/archway/releases/tag/v7.0.0) From a67ec24690a1e513b93e455b8553b6bc53eeb9d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Augusto=20Elesb=C3=A3o?= Date: Tue, 21 May 2024 19:36:35 +0200 Subject: [PATCH 7/7] ci(proto): do not push on pull requests --- .github/workflows/proto-registry.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/proto-registry.yaml b/.github/workflows/proto-registry.yaml index 2e9e1acc..3fda43f8 100644 --- a/.github/workflows/proto-registry.yaml +++ b/.github/workflows/proto-registry.yaml @@ -7,10 +7,6 @@ on: tags: [v*] paths: - proto/** - pull_request: - paths: - - proto/** - - .github/workflows/proto-registry.yaml jobs: push: @@ -21,5 +17,4 @@ jobs: - uses: bufbuild/buf-push-action@v1 with: input: proto - draft: ${{ github.ref_name != 'main'}} buf_token: ${{ secrets.BUF_TOKEN }}