message: Adjust PR build logic
diff: @@ -16,7 +16,7 @@ on:
  jobs:
  build_and_deploy_job:
  name: Azure Static Web App
  - if: github.event_name == 'repository_dispatch' || github.event_name == 'workflow_dispatch'
  + if: (github.event_name == 'repository_dispatch' || github.event_name == 'workflow_dispatch') || (github.event_name == 'pull_request' && github.event.action != 'closed')
  runs-on: ubuntu-latest
  steps:
  @@ -102,3 +102,15 @@ jobs:
  ###### End of Repository/Build Configurations ######
  env: # Add environment variables here
  HUGO_PARAMS_APPINSIGHTKEY: ${{ secrets.APP_INSIGHTS_KEY }}
  +
  + close_pull_request_job:
  + if: github.event_name == 'pull_request' && github.event.action == 'closed'
  + runs-on: ubuntu-latest
  + name: Close Pull Request Job
  + steps:
  + - name: Close Pull Request
  + id: closepullrequest
  + uses: Azure/static-web-apps-deploy@v0.0.1-preview
  + with:
  + azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_AGREEABLE_HILL_0EEFF5B10 }}
  + action: "close"
  