Skip to content

Commit

Permalink
Pull on Push only on the main branch
Browse files Browse the repository at this point in the history
- Now changes will be pushed to prod only if the branch is main
  • Loading branch information
ojusharma authored Apr 6, 2024
1 parent 24b7b94 commit bfde8c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/pull_on_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@ on:
workflows: ["Running Tests"]
types:
- completed
branches:
- main
workflow_dispatch:

jobs:
pull:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'

steps:
- name: SSH and Pull Changes
Expand Down

0 comments on commit bfde8c8

Please sign in to comment.