Skip to content

Commit

Permalink
Run deploy only after successull check (#89)
Browse files Browse the repository at this point in the history
* run deploy only after successull check

* fix the main branch name
  • Loading branch information
kalambet committed Mar 3, 2023
1 parent 2fe6c4e commit cb7a385
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/cf-deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
name: CloudFlare Deploy
on: [push]
on:
workflow_run:
workflows:
- CI
types:
- completed

jobs:
deploy:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
permissions:
contents: read
deployments: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI
on:
push:
branches:
- master
- main
pull_request:
branches:
- '**'
Expand Down

0 comments on commit cb7a385

Please sign in to comment.