Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
jmilldotdev committed Jan 3, 2025
1 parent 4c2c4c1 commit 880a914
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ on:

jobs:
deploy:
if: github.event.pull_request.merged == true || github.event_name == 'push'
if: >
(github.event_name == 'push' && !contains(github.event.head_commit.message, 'Merge pull request')) ||
(github.event_name == 'pull_request' && github.event.pull_request.merged == true)
runs-on: ubuntu-latest
env:
DB: PROD
Expand All @@ -34,7 +36,6 @@ jobs:
- name: Install Rye
run: |
curl -sSf https://rye.astral.sh/get | bash
echo "$HOME/.rye/shims" >> $GITHUB_PATH
- name: Install dependencies
run: rye sync
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ on:

jobs:
deploy:
if: github.event.pull_request.merged == true || github.event_name == 'push'
if: >
(github.event_name == 'push' && !contains(github.event.head_commit.message, 'Merge pull request')) ||
(github.event_name == 'pull_request' && github.event.pull_request.merged == true)
runs-on: ubuntu-latest
env:
DB: STAGE
Expand All @@ -34,7 +36,6 @@ jobs:
- name: Install Rye
run: |
curl -sSf https://rye.astral.sh/get | bash
echo "$HOME/.rye/shims" >> $GITHUB_PATH
- name: Install dependencies
run: rye sync
Expand Down

0 comments on commit 880a914

Please sign in to comment.