diff --git a/.github/workflows/api.yaml b/.github/workflows/api.yaml index 90c0d71a..28adf890 100644 --- a/.github/workflows/api.yaml +++ b/.github/workflows/api.yaml @@ -81,7 +81,7 @@ jobs: deploy-stage: runs-on: ubuntu-latest name: Deploy to stage - if: ${{ github.ref == 'refs/heads/develop' }} + 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')) }} needs: validate steps: diff --git a/.github/workflows/web.yaml b/.github/workflows/web.yaml index 11cd6902..05f18d87 100644 --- a/.github/workflows/web.yaml +++ b/.github/workflows/web.yaml @@ -61,7 +61,7 @@ jobs: deploy-stage: runs-on: ubuntu-latest name: Deploy to stage - if: ${{ github.ref == 'refs/heads/develop' }} + 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')) }} needs: validate steps: