Skip to content

Commit

Permalink
updated workflow on branches conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
julesntare committed Dec 16, 2024
1 parent a0b7394 commit d04b808
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev

env:
DJANGO_SETTINGS_MODULE: eudr_backend.settings
Expand Down Expand Up @@ -63,7 +64,7 @@ jobs:
name: Deploy to AWS EC2
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main' || github.head_ref == 'main'

steps:
- name: Checkout Code
Expand Down

0 comments on commit d04b808

Please sign in to comment.