Skip to content

Commit

Permalink
actions: deploy after garnix runs
Browse files Browse the repository at this point in the history
  • Loading branch information
getchoo committed Nov 18, 2023
1 parent 464e0d4 commit 320ba9a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 2 additions & 1 deletion garnix.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
builds:
exclude: []
exclude:
- "checks.x86_64-darwin.*"
include:
- "checks.*.*"
- "devShells.x86_64-linux.default"
Expand Down

0 comments on commit 320ba9a

Please sign in to comment.