Skip to content

Commit

Permalink
ci: add remote build trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
aoudiamoncef committed Jun 2, 2023
1 parent c348491 commit ac81b3e
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/buf.yaml → .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: buf-check
name: CI/CD
on:
workflow_dispatch:
push:
Expand All @@ -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"
Expand All @@ -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 }}"}'

0 comments on commit ac81b3e

Please sign in to comment.