From 6c77b952cdd58e78aec23dd304c2310ac071a673 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Mon, 31 Oct 2022 08:02:44 -0300 Subject: [PATCH] ci: build only on main, also nightly cronjob --- .github/workflows/main.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b6c1280..2fa58c0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,9 @@ -on: [push, workflow_dispatch] +on: + push: + branches: + - main + schedule: + - cron: '0 0 * * *' jobs: build: @@ -33,7 +38,7 @@ jobs: - name: upload uses: actions/upload-artifact@v3 with: - name: build-${{matrix.os}} + name: zba-${{matrix.os}} path: zig-out/bin lint: runs-on: ubuntu-latest