Skip to content

Commit

Permalink
Update python-package-ci-cd.yml 🤖
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanjaypranav authored Feb 27, 2024
1 parent e031155 commit 014b35a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/python-package-ci-cd.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Python Package CI/CD

on:
push:
branches:
- main
pull_request:
branches:
- main
Expand All @@ -12,7 +15,12 @@ jobs:
deploy:
needs: build
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'main'
if: |
github.event_name == 'pull_request' &&
github.event.pull_request.base.ref == 'main' &&
github.event.pull_request.merged == true ||
github.event_name == 'push' &&
github.event.ref == 'refs/heads/main'
steps:
- name: Checkout code
Expand Down

0 comments on commit 014b35a

Please sign in to comment.