Skip to content

Commit

Permalink
Only run deployment steps on the main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
u-ways committed May 1, 2024
1 parent 9c9ad99 commit 730df0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/cd-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
Deploy-Image:
needs: Export-Image
runs-on: ubuntu-22.04
if: github.ref == 'refs/heads/main'
steps:
- name: 'Deploying App image'
run: echo "Deploying App image... (mocked)"
Expand All @@ -53,6 +54,7 @@ jobs:
Deploy-Doc:
needs: Export-Doc
runs-on: ubuntu-22.04
if: github.ref == 'refs/heads/main'
steps:
- name: 'Downloading OpenAPI schema'
uses: actions/download-artifact@v4
Expand Down

0 comments on commit 730df0f

Please sign in to comment.