Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added if condition for container build #109

Merged
7 changes: 4 additions & 3 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:

jobs:
build:

if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -35,6 +35,7 @@ jobs:
working-directory: ./src/TagzApp.UnitTest

playwright:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
name: 'Playwright Tests'
runs-on: ubuntu-latest
defaults:
Expand All @@ -56,10 +57,10 @@ jobs:
TestHostStartDelay: 1000
run: dotnet test --no-build
image:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
name: 'Create docker image for Web'
runs-on: ubuntu-latest
needs: [playwright]
# needs: [playwright]
steps:
- uses: actions/checkout@v3

Expand Down
Loading