diff --git a/.github/workflows/buf.yaml b/.github/workflows/ci-cd.yaml similarity index 61% rename from .github/workflows/buf.yaml rename to .github/workflows/ci-cd.yaml index c286e1e..a7af055 100644 --- a/.github/workflows/buf.yaml +++ b/.github/workflows/ci-cd.yaml @@ -1,4 +1,4 @@ -name: buf-check +name: CI/CD on: workflow_dispatch: push: @@ -19,7 +19,7 @@ jobs: check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: bufbuild/buf-setup-action@v1 with: version: "1.19.0" @@ -29,3 +29,15 @@ jobs: with: # The 'main' branch of the GitHub repository that defines the module. against: "https://github.com/${GITHUB_REPOSITORY}.git#branch=main" + trigger-remote-build: + needs: check + if: ${{ github.ref == 'refs/heads/main' }} + runs-on: ubuntu-latest + steps: + - name: Trigger proto bindings remote build + uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + repository: massalabs/massa-proto-bindings + event-type: remote-build + client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'