Azure / functions-action

Enable GitHub developers to deploy to Azure Function Apps using GitHub Actions
MIT License
156 stars 76 forks source link

Both slots updated on push #177

Closed bmdyrdal closed 1 year ago

bmdyrdal commented 1 year ago

Hi,

We have a Github action that pushes our Java code to our ci slot. After testing we swap with production at a suitable time. Earlier this has been working fine, and the production slot has not been affected by pushes.

Since March 24th (maybe earlier) both slots have been updated, causing the production slot to restart.

- name: 'Run Azure Functions Action' uses: Azure/functions-action@v1 id: fa with: app-name: 'our function api' slot-name: 'ci' publish-profile: ${{ publish profile secret}} package: '${{ env.PACKAGE_DIRECTORY }}' respect-pom-xml: true

Any ideas on what could be wrong?

Best regards, Bent Martin

patelchandni commented 1 year ago

@bmdyrdal, this action has not been updated since November 2022. But was there any updated on the function app and slot app settings? If both are using the same name for "WEBSITE_CONTENTSHARE" app setting, then this might be the root cause.

bmdyrdal commented 1 year ago

Thank you @patelchandni! It was indeed the WEBSITE_CONTENSHARE app setting that caused both of them to be updated.