diff --git a/.ci/cirrus.runner.yml b/.ci/cirrus.runner.yml index 79aac1d..e0e95da 100644 --- a/.ci/cirrus.runner.yml +++ b/.ci/cirrus.runner.yml @@ -23,10 +23,10 @@ task: -var expected_runtimes_file="data/expected.$MACOS_VERSION.runtimes.txt" \ templates/xcode.pkr.hcl push_script: | - if [[ -z "$CIRRUS_CRON" ]]; then - echo "Not a cron build, skipping pushing..." - else + if [[ -z "$CIRRUS_PR" ]]; then tart push "$MACOS_VERSION-xcode:runner" ghcr.io/cirruslabs/macos-runner:$MACOS_VERSION + else + echo "Skipping pushing for PR..." fi always: cleanup_script: diff --git a/.cirrus.star b/.cirrus.star index afc9a9d..e695199 100644 --- a/.cirrus.star +++ b/.cirrus.star @@ -46,6 +46,7 @@ def main(ctx): if env.get("CIRRUS_CRON") == "monthly": result += fs.read(".ci/cirrus.base.yml") result += fs.read(".ci/cirrus.xcode.yml") - if env.get("CIRRUS_CRON") == "weekly" or changes_include(".ci/cirrus.runner.yml"): + prForRunners = env.get("CIRRUS_PR") and changes_include(".ci/cirrus.runner.yml") + if prForRunners: result += fs.read(".ci/cirrus.runner.yml") return result