Skip to content

Commit 2d7cfbe

Browse files
committed
ci: Minor ci fixes
1 parent 48af4db commit 2d7cfbe

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/ci-cd-pipeline.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ on:
1818
- ".github/FUNDING.yml"
1919
- ".eslintrc"
2020
- ".gitignore"
21+
- "__tests__/**"
2122
pull_request:
2223
# Triggers on pull requests to main/development branches.
2324
branches: ["main", "development"]
@@ -30,6 +31,7 @@ on:
3031
- ".github/FUNDING.yml"
3132
- ".eslintrc"
3233
- ".gitignore"
34+
- "__tests__/**"
3335
workflow_dispatch:
3436
# Allows manual triggering of the workflow.
3537

@@ -40,6 +42,9 @@ jobs:
4042
uses: ./.github/workflows/lint-and-test.yml
4143
secrets: inherit
4244
with:
43-
target_env: ${{ github.ref == 'refs/heads/main' && 'production' || github.ref == 'refs/heads/development' && 'development' || 'invalid' }}
45+
target_env: ${{
46+
(github.ref == 'refs/heads/main' || github.base_ref == 'main') && 'production' ||
47+
(github.ref == 'refs/heads/development' || github.base_ref == 'development') && 'development'
48+
}}
4449
node-version: "22.4.1"
4550
skip_deploy: ${{ github.event_name == 'pull_request' }} # skip deployment if it's a pull request

0 commit comments

Comments
 (0)