From 53cce474f02606ebd83ff9f5a4b7dd617d073c3d Mon Sep 17 00:00:00 2001 From: Akshay Kumar Date: Fri, 20 Feb 2026 12:10:50 +0530 Subject: [PATCH 1/2] Add a file to keep the version --- src/main.ts | 3 ++- src/version.ts | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 src/version.ts diff --git a/src/main.ts b/src/main.ts index 752c79395..05400460c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -8,6 +8,7 @@ import { DEPLOYMENT_PROVIDER_TYPES } from "./DeploymentProvider/Providers/BaseWe import { DeploymentProviderFactory } from './DeploymentProvider/DeploymentProviderFactory'; import { IAuthorizer } from 'azure-actions-webclient/Authorizer/IAuthorizer'; import { ValidatorFactory } from './ActionInputValidator/ValidatorFactory'; +import { VERSION } from './version'; var prefix = !!process.env.AZURE_HTTP_USER_AGENT ? `${process.env.AZURE_HTTP_USER_AGENT}` : ""; @@ -18,7 +19,7 @@ export async function main() { // Set user agent variable let usrAgentRepo = crypto.createHash('sha256').update(`${process.env.GITHUB_REPOSITORY}`).digest('hex'); let actionName = 'DeployWebAppToAzure'; - let userAgentString = (!!prefix ? `${prefix}+` : '') + `GITHUBACTIONS_${actionName}_${usrAgentRepo}`; + let userAgentString = (!!prefix ? `${prefix}+` : '') + `GITHUBACTIONS_${actionName}_${usrAgentRepo}_${VERSION}`; core.exportVariable('AZURE_HTTP_USER_AGENT', userAgentString); // Initialize action inputs diff --git a/src/version.ts b/src/version.ts new file mode 100644 index 000000000..4a7906d32 --- /dev/null +++ b/src/version.ts @@ -0,0 +1,2 @@ +// Update this file before release. +export const VERSION = 'dev'; From a3d1291038919b2a0e4c48223731adef53c0116f Mon Sep 17 00:00:00 2001 From: Akshay Kumar Date: Mon, 23 Feb 2026 14:53:10 +0530 Subject: [PATCH 2/2] fix a workflow --- .github/workflows/github_actions_test_v3.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github_actions_test_v3.yml b/.github/workflows/github_actions_test_v3.yml index 62c5f7731..e20173788 100644 --- a/.github/workflows/github_actions_test_v3.yml +++ b/.github/workflows/github_actions_test_v3.yml @@ -96,4 +96,4 @@ jobs: app-name: 'lwasv2-euap-node-githubactions-v3' slot-name: 'Production' package: nodeapp - publish-profile: ${{ secrets.LWASV2_EUAP_NODE_GITHUBACTIONS_RELEASE_V3 }} + publish-profile: ${{ secrets.LWASV2_EUAP_NODE_GITHUBACTIONS_V3 }}