Skip to content

Commit

Permalink
don't run deploy job if CI was scheduled (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
schoblaska authored Mar 7, 2024
1 parent 3120e20 commit 21a5bb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ on:
workflows: [CI]
types: [completed]
branches: [main]

jobs:
deploy:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event != 'schedule' }}
steps:
- uses: actions/checkout@v3
- name: Tag and Push Gem
Expand Down

0 comments on commit 21a5bb7

Please sign in to comment.