From 320ba9a0f53b8fa2697ccc85e53ac3afa5197d71 Mon Sep 17 00:00:00 2001 From: seth Date: Fri, 17 Nov 2023 20:35:31 -0500 Subject: actions: deploy after garnix runs --- .github/workflows/deploy.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to '.github') 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 -- cgit v1.2.3