Skip to content

Commit

Permalink
fix: restore workflow conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
wei2912 committed Jan 4, 2024
1 parent f040ad7 commit 2410327
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/deploy-lambda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ jobs:

build:
needs: pre_build
#if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') || needs.pre_build.outputs.should_skip != 'true' }}
if: ${{ (github.event_name == 'push') }}
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') || needs.pre_build.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -55,8 +54,7 @@ jobs:

deploy:
needs: build
#if: github.event_name == 'push' && github.ref == 'refs/heads/master'
if: github.event_name == 'push'
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
Expand Down

0 comments on commit 2410327

Please sign in to comment.