Repository navigation
Description
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:
- The workflow run completes successfully according to both GitHub Actions and the Azure Deployment logs.
- The reported runtime for subsequent deployments is approximately one-third of the initial deployment time.
- 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
- Configure an Azure App Service to deploy from a GitHub repository branch.
- Use the auto-generated workflow, which specifies
azure/webapps-deploy@v3. - Push changes to the specified branch to trigger a deployment.
- Verify that the initial deployment succeeds and updates the App Service code.
- Push subsequent changes to the branch to trigger another deployment.
- Observe that the workflow reports success, but the App Service code is not updated.
Workaround
-
Downgrade the action to
azure/webapps-deploy@v2in 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.
Activity
ShilpiRachna1 commentedon Feb 25, 2025
Can you please share the app name?
davidm-glitch commentedon Mar 3, 2025
Hello,
I am facing the same issue with v3.
This is my Github Action
The Output from the Action is this:
It says that the deployment was successful. This is indeed right, because the given deployment ID is the same every time and the deploy with this ID was succesfull (the first one). Everytime I trigger the action it gehts the same deployment ID but there are no changes to the files on the server.
Also no new Logs in the azure deployment center.
bradyclifford commentedon Apr 2, 2025
It seems to however not be a problem with
az webapp deploy.Relates to #404
timlaughlin commentedon May 23, 2025
I didn't realize this might be specific to Umbraco but definitely having this same issue with new workflow files generated in the azure portal.
carson-nr commentedon Apr 4, 2026
I think this might be a race condition with how "latest" gets resolved during polling.
The 202 response from /api/publish?async=true sets the Location header to /api/deployments/latest instead of a unique deployment ID. OneDeploy saves the artifact inside the deployment lock but releases it before the deployment record is created. If the client polls before that record exists, the server finds no in-progress deployment and returns the previous successful one. The client sees SUCCESS and exits.
v2 avoids this because ZipDeploy creates the deployment record while still holding the lock. az webapp deploy avoids it because the ARM proxy assigns a unique DeploymentTrackingId instead of relying on "latest."