Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ async function main() {
let actionName = 'AzurePowerShellAction';
let userAgentString = (!!userAgentPrefix ? `${userAgentPrefix}+` : '') + `GITHUBACTIONS_${actionName}_${usrAgentRepo}`;
core.exportVariable('AZURE_HTTP_USER_AGENT', userAgentString);
core.exportVariable('AZUREPS_HOST_ENVIRONMENT', userAgentString);

const inlineScript: string = core.getInput('inlineScript', { required: true });
azPSVersion = core.getInput('azPSVersion', { required: true }).trim().toLowerCase();
Expand Down Expand Up @@ -45,6 +46,7 @@ async function main() {
FileUtils.deleteFile(ScriptRunner.filePath);
// Reset AZURE_HTTP_USER_AGENT
core.exportVariable('AZURE_HTTP_USER_AGENT', userAgentPrefix);
core.exportVariable('AZUREPS_HOST_ENVIRONMENT', userAgentPrefix);
}
}

Expand Down