From 9e56c7a39b3dcee5c8a58cdb2f6f8046473ab979 Mon Sep 17 00:00:00 2001 From: dpastor Date: Wed, 1 Jun 2022 12:38:01 -0600 Subject: [PATCH] updating release workflow --- .github/workflows/release.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 93d6760..3162377 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,6 +1,20 @@ name: Build distribution -on: [push, pull_request] +on: + # GitHub has started calling new repo's first branch "main" https://github.com/github/renaming + # Existing codes likely still have "master" as the primary branch + # Both are tracked here to keep legacy and new codes working + push: + branches: + - "main" + pull_request: + branches: + - "main" + schedule: + # Nightly tests run on master by default: + # Scheduled workflows run on the latest commit on the default or base branch. + # (from https://help.github.com/en/actions/reference/events-that-trigger-workflows#scheduled-events-schedule) + - cron: "0 0 * * 1" ## running every Monday at midnight jobs: test: