Skip to content

Commit

Permalink
Don't run preview at workflow dispathc
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Almeida committed May 4, 2022
1 parent fad6c04 commit cc88675
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
name: Preview [TEST]
needs: [tests]
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/main'
if: github.ref != 'refs/heads/main' && github.event_name != 'workflow_dispatch'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
Expand Down Expand Up @@ -75,7 +75,6 @@ jobs:

deploy-test:
name: Deploy [TEST]
needs: [preview-test]
runs-on: ubuntu-latest
environment: test
if: github.event_name == 'workflow_dispatch'
Expand Down

0 comments on commit cc88675

Please sign in to comment.