Skip to content

Commit

Permalink
Merge branch 'CommsJKUAT:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
franfreezy authored Dec 7, 2024
2 parents 78c4032 + cb33478 commit c634fc8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed' && github.event.pull_request.merged == true)
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
output_location: 'dist'

close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
runs-on: ubuntu-latest
name: Close Pull Request Job
steps:
Expand All @@ -52,4 +52,4 @@ jobs:
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_LIVELY_MUD_042177E03 }}
action: "close"
action: "close"

0 comments on commit c634fc8

Please sign in to comment.