refactor(deploy): run deploy workflow only if tests succeeded

Signed-off-by: Sphericalkat <amolele@gmail.com>
This commit is contained in:
sphericalkat committed 2023-05-29 14:53:04 +05:30
1 parent 44b3f41a4b
commit 03b74fd90a
1 file changed
+6 -1
+6 -1
View File
@@ -1,5 +1,10 @@
name: Fly Deploy
on: [push]
on:
workflow_run:
workflows: ["Run tests"]
branches: [main]
types:
- completed
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
jobs: