From 4027d1f5e132161e40ca6a48ae70646229d466b3 Mon Sep 17 00:00:00 2001 From: danielsanchezq Date: Tue, 27 Sep 2022 15:19:17 +0200 Subject: [PATCH] Filter branches Use submodule force update --- .github/workflows/main.yml | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cb2a817..6935c55 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,5 +1,10 @@ # copy of https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md -on: [push, pull_request] +on: + push: + branches: [master] + pull_request: + branches: + - "*" name: CI @@ -13,7 +18,11 @@ jobs: steps: - uses: actions/checkout@v3 with: - submodules: recursive + submodules: true + - name: Checkout submodules + uses: srt32/git-actions@v0.0.3 + with: + args: git submodule update --init --recursive - uses: actions-rs/toolchain@v1 with: profile: minimal @@ -33,7 +42,11 @@ jobs: steps: - uses: actions/checkout@v3 with: - submodules: recursive + submodules: true + - name: Checkout submodules + uses: srt32/git-actions@v0.0.3 + with: + args: git submodule update --init --recursive - uses: actions/setup-go@v3 # we need go to build go-waku with: go-version: '1.19' @@ -58,7 +71,11 @@ jobs: steps: - uses: actions/checkout@v3 with: - submodules: recursive + submodules: true + - name: Checkout submodules + uses: srt32/git-actions@v0.0.3 + with: + args: git submodule update --init --recursive - uses: actions/setup-go@v3 # we need go to build go-waku with: go-version: '1.19'