Skip to content

Commit

Permalink
skip dev deployment when credentials are not available
Browse files Browse the repository at this point in the history
skip dev deployment when credentials are not available.  This can happen when pull requests come from external repositories.
  • Loading branch information
PeterWarren authored Jun 13, 2024
1 parent 063e624 commit 3ab7bbc
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:
output_location: "dist/" # Built app content directory - optional
app_build_command: "npm run build-dev"
###### End of Repository/Build Configurations ######
env:
SKIP_DEPLOY_ON_MISSING_SECRETS: true

close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
Expand All @@ -49,3 +51,5 @@ jobs:
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_POLITE_DUNE_0C657411E }}
action: "close"
env:
SKIP_DEPLOY_ON_MISSING_SECRETS: true

0 comments on commit 3ab7bbc

Please sign in to comment.