summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/deploy.yaml10
-rw-r--r--garnix.yaml3
2 files changed, 10 insertions, 3 deletions
diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml
index 7685b3f..8c3ecac 100644
--- a/.github/workflows/deploy.yaml
+++ b/.github/workflows/deploy.yaml
@@ -1,14 +1,20 @@
name: deploy systems
on:
- push:
- branches: [main]
+ check_suite:
+ types: [completed]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
+ # https://github.com/sellout/bash-strict-mode/commit/9bf1d65c2f786a9887facfcb81e06d8b8b5f4667
+ if: github.event.check_suite.app.name == 'Garnix CI'
+ && github.event.check_suite.conclusion == 'success'
+ && github.event.check_suite.latest_check_runs_count >= 12
+ && github.event.check_suite.head_branch == 'main'
+
steps:
- uses: actions/checkout@v4
diff --git a/garnix.yaml b/garnix.yaml
index 1f0346c..b2afcef 100644
--- a/garnix.yaml
+++ b/garnix.yaml
@@ -1,5 +1,6 @@
builds:
- exclude: []
+ exclude:
+ - "checks.x86_64-darwin.*"
include:
- "checks.*.*"
- "devShells.x86_64-linux.default"