Skip to content

Commit c6f24c2

Browse files
authored
Update azure-static-web-apps-backend.yml
Checking if secrets exist
1 parent bd765aa commit c6f24c2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/azure-static-web-apps-backend.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ env:
1919

2020
jobs:
2121
build_and_deploy_job:
22-
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
22+
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed' & github.secret_source == 'Actions' )
2323
runs-on: ubuntu-latest
2424
name: Build and Deploy Job
2525
steps:
@@ -42,7 +42,6 @@ jobs:
4242
uses: Azure/functions-action@v1
4343
id: fa
4444
with:
45-
if: ${{ github.secret_source == 'Actions' }}
4645
app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }}
4746
package: '${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}/output'
4847
publish-profile: ${{ secrets.AZURE_FUNCTIONAPP_PUBLISH_PROFILE }}

0 commit comments

Comments
 (0)