Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment with azure/webapps-deploy@v3 Fails to Update Code in App Service #449

Open
carson-nr opened this issue Jan 18, 2025 · 0 comments

Comments

@carson-nr
Copy link

Description

When using azure/webapps-deploy@v3 in a GitHub Actions workflow file (auto-generated by Azure when configuring an App Service to receive deployments from a specific branch), the initial deployment succeeds as expected, updating the code in the App Service. However, subsequent deployments exhibit the following issues:

  1. The workflow run completes successfully according to both GitHub Actions and the Azure Deployment logs.
  2. The reported runtime for subsequent deployments is approximately one-third of the initial deployment time.
  3. Despite the success indications, the code in the App Service is not updated. This can be verified by examining the App Service editor, which shows the old code.

Downgrading the action to azure/webapps-deploy@v2 resolves the issue. After downgrading, multiple deployments can be triggered successfully, and the code changes are correctly applied to the App Service.

Deleting the deployment connection from the Azure side and then recreating it also temporarily resolves the issue. The deployment will succeed on the first push after recreating the connection, but subsequent pushes fail to update the app code.

Environment Details

  • App Service Type: Node.js
  • Issue Onset: Began within the past 24 hours
  • Generated Workflow File: Created automatically by Azure when configuring deployment from a GitHub branch

Steps to Reproduce

  1. Configure an Azure App Service to deploy from a GitHub repository branch.
  2. Use the auto-generated workflow, which specifies azure/webapps-deploy@v3.
  3. Push changes to the specified branch to trigger a deployment.
  4. Verify that the initial deployment succeeds and updates the App Service code.
  5. Push subsequent changes to the branch to trigger another deployment.
  6. Observe that the workflow reports success, but the App Service code is not updated.

Workaround

  • Downgrade the action to azure/webapps-deploy@v2 in the workflow file.

  • Alternatively, delete the deployment connection in Azure and recreate it. Note that this resolves the issue temporarily, with the deployment succeeding on the first push only.

Expected Behavior

  • Each deployment, whether initial or subsequent, should correctly update the code in the App Service.

Actual Behavior

  • Only the initial deployment updates the code. Subsequent deployments report success but fail to apply code changes.

Additional Information

  • This issue appears to have started recently, suggesting a possible regression or change in azure/webapps-deploy@v3.
  • Logs from both GitHub Actions and Azure Deployment indicate success, despite the code not being updated.

Request

Please investigate this issue and provide a resolution or guidance. If additional information or testing is required, I’m happy to assist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant