summaryrefslogtreecommitdiff
path: root/.github
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 /.github
parent464e0d4d0190ff3ff13f24ed51ba7c5eb845ccfd (diff)
actions: deploy after garnix runs
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/deploy.yaml10
1 files changed, 8 insertions, 2 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