Skip to content

Commit

Permalink
Add cron trigger to cirrus.star
Browse files Browse the repository at this point in the history
  • Loading branch information
IAlibay authored Jul 30, 2023
1 parent ac30c88 commit 37ca0ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .cirrus.star
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ def main(ctx):
if ((env.get("CIRRUS_BASE_BRANCH") == "develop") and (env.get("CIRRUS_PR") != None)):
return fs.read("maintainer/ci/cirrus-ci.yml")

# If it's a CRON job named twiceweekly
if ((env.get("CIRRUS_CRON") == "twiceweekly") and (env.get("CIRRUS_BRANCH") == "develop")):
return fs.read("maintainer/ci/cirrus-ci.yml")

# If you've tagged a package or released something, deploy
if ((env.get("CIRRUS_TAG") != None) or (env.get("CIRRUS_RELEASE") != None)):
return fs.read("maintainer/ci/cirrus-deploy.yml")
Expand Down

0 comments on commit 37ca0ce

Please sign in to comment.