summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseth <[email protected]>2023-11-17 20:35:31 -0500
committerseth <[email protected]>2023-11-17 20:35:45 -0500
commit320ba9a0f53b8fa2697ccc85e53ac3afa5197d71 (patch)
tree1d6ebf9f9790e81ad7de9c8b4514821b78e45427
parent464e0d4d0190ff3ff13f24ed51ba7c5eb845ccfd (diff)
actions: deploy after garnix runs
-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"