Skip to content

Commit

Permalink
Change static webapps if condition to single line
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-goldman committed Jul 3, 2023
1 parent 0598eae commit c86621a
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ jobs:
build_and_deploy_job:
needs: changes
if: |
github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') &&
${{ needs.changes.outputs.src == 'true' }}
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') && ${{ needs.changes.outputs.src == 'true' }}
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
Expand All @@ -51,8 +49,7 @@ jobs:

close_pull_request_job:
needs: changes
if: |
github.event_name == 'pull_request' && github.event.action == 'closed' && ${{ needs.changes.outputs.src == 'true' }}
if: github.event_name == 'pull_request' && github.event.action == 'closed' && ${{ needs.changes.outputs.src == 'true' }}
runs-on: ubuntu-latest
name: Close Pull Request Job
steps:
Expand Down

0 comments on commit c86621a

Please sign in to comment.