Skip to content

Commit

Permalink
Install extension explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
snehapar9 committed Nov 6, 2023
1 parent 7d001e7 commit e6fd4b0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/run-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,6 @@ jobs:
TEST_CONTAINER_APP_NAME: 'gh-ca-pd-${{ github.run_id }}'

steps:
- name: Clone azure-cli-extensions repo
uses: actions/checkout@v3
with:
repository: snehapar9/azure-cli-extensions
path: azure-cli-extensions

- name: Install latest azure-cli-extensions wheel
run: az extension add --source '${{ github.workspace }}/azure-cli-extensions/containerapp-0.3.42-py2.py3-none-any.whl' --yes
- name: Checkout action repository
uses: actions/checkout@v3

Expand Down
3 changes: 3 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5814,6 +5814,9 @@ var Utility = /** @class */ (function () {
switch (_a.label) {
case 0: return [4 /*yield*/, this.execute("az config set extension.use_dynamic_install=yes_without_prompt")];
case 1:
_a.sent();
return [4 /*yield*/, this.execute("az extension add --name containerapp --version 0.3.43")];
case 2:
_a.sent();
return [2 /*return*/];
}
Expand Down
1 change: 1 addition & 0 deletions src/Utility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export class Utility {
*/
public async setAzureCliDynamicInstall() {
await this.execute(`az config set extension.use_dynamic_install=yes_without_prompt`);
await this.execute(`az extension add --name containerapp --version 0.3.43`);
}

/**
Expand Down

0 comments on commit e6fd4b0

Please sign in to comment.