diff --git a/.github/workflows/CD-azure-functions.yml b/.github/workflows/CD-azure-functions.yml index eb2b551..bdfef12 100644 --- a/.github/workflows/CD-azure-functions.yml +++ b/.github/workflows/CD-azure-functions.yml @@ -1,11 +1,11 @@ name: CD Azure Functions deployment on: - # Trigger the workflow on push or pull request, - # but only for the main branch - push: + # Trigger the workflow on pull request but only for the master branch + pull_request: + types: [closed] branches: - - pipe + - master env: AZURE_FUNCTIONAPP_NAME: 'time-tracker-azure-functions' @@ -28,10 +28,3 @@ jobs: npm install func settings add FUNCTIONS_WORKER_RUNTIME node func azure functionapp publish time-tracker-azure-functions --node -# - name: 'Run Azure Functions Action' -# uses: Azure/functions-action@v1 -# id: fa -# with: -# app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }} -# package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }} -# publish-profile: ${{ secrets.SCM_CREDENTIALS }}