Skip to content

Commit

Permalink
chore: update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
agentR47@gmail.com authored and rajdip-b committed Feb 11, 2024
1 parent 7622db3 commit 32eb820
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/api.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
on:
push:
branches:
- develop
paths: ['apps/api/**', '.github/workflows/api.yaml']
tags:
- '*'
Expand Down Expand Up @@ -70,7 +72,7 @@ jobs:
deploy-stage:
runs-on: ubuntu-latest
name: Deploy to stage
if: ${{ github.ref == 'refs/heads/develop' && (startsWith(github.event.head_commit, 'fix') || startsWith(github.event.head_commit, 'feat') || startsWith(github.event.head_commit, 'chore') || startsWith(github.event.head_commit, 'refactor') || startsWith(github.event.head_commit, 'patch')) }}
if: github.ref == 'refs/heads/develop'
needs: validate

steps:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/web.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
on:
push:
branches:
- develop
paths: ['apps/web/**', '.github/workflows/web.yaml']
tags:
- '*'
Expand Down Expand Up @@ -61,7 +63,7 @@ jobs:
deploy-stage:
runs-on: ubuntu-latest
name: Deploy to stage
if: ${{ github.ref == 'refs/heads/develop' && (startsWith(github.event.head_commit, 'fix') || startsWith(github.event.head_commit, 'feat') || startsWith(github.event.head_commit, 'chore') || startsWith(github.event.head_commit, 'refactor') || startsWith(github.event.head_commit, 'style') || startsWith(github.event.head_commit, 'patch')) }}
if: github.ref == 'refs/heads/develop'
needs: validate

steps:
Expand Down

0 comments on commit 32eb820

Please sign in to comment.