Skip to content

Commit 94858a2

Browse files
committed
output azCliVersion.
1 parent 59feab9 commit 94858a2

File tree

3 files changed

+19
-14
lines changed

3 files changed

+19
-14
lines changed

.github/actions/setvars/action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ runs:
99
using: "composite"
1010
steps:
1111
- run: |
12-
sed "" ${{ inputs.varFilePath }} >> $GITHUB_ENV
13-
sed "" ${{ inputs.varFilePath }} >> $GITHUB_OUTPUT
12+
sed "" ${{ inputs.varFilePath }} >> $GITHUB_ENV
1413
shell: bash

.github/workflows/testWlsAksWithDependencyCreation.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,22 @@ jobs:
4848
azCliVersion: ${{steps.set-az-cli-version.outputs.azCliVersion}}
4949
runs-on: ubuntu-latest
5050
steps:
51+
- uses: actions/[email protected]
52+
- name: Set AZ CLI Version and save in variable azCliVersion
53+
uses: ./.github/actions/setvars
54+
with:
55+
varFilePath: ./.github/variables/vm-dependencies.env
56+
- name: Output Az CLi version
57+
id: set-az-cli-version
58+
run: |
59+
echo "azCliVersion=${azCliVersion}" >> $GITHUB_OUTPUT
5160
- name: Get versions of external dependencies
5261
id: get-external-dependencies-version
5362
run: |
5463
curl -Lo external-deps-versions.properties https://raw.githubusercontent.com/Azure/azure-javaee-iaas/main/external-deps-versions.properties
5564
source external-deps-versions.properties
5665
echo "bicepVersion=${BICEP_VERSION}" >> $GITHUB_ENV
5766
echo "refArmttk=${ARM_TTK_REFERENCE}" >> $GITHUB_ENV
58-
- uses: actions/[email protected]
59-
- name: Set AZ CLI Version
60-
id: set-az-cli-version
61-
uses: ./.github/actions/setvars
62-
with:
63-
varFilePath: ./.github/variables/vm-dependencies.env
6467
- name: Setup environment variables
6568
id: setup-env-variables-based-on-dispatch-event
6669
run: |

.github/workflows/testWlsAksWithoutDependencyCreation.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,22 @@ jobs:
6060
testBranchNameForArtifactsLocation: ${{ steps.setup-env-variables-based-on-dispatch-event.outputs.testBranchNameForArtifactsLocation }}
6161
azCliVersion: ${{steps.set-az-cli-version.outputs.azCliVersion}}
6262
steps:
63+
- uses: actions/[email protected]
64+
- name: Set AZ CLI Version
65+
uses: ./.github/actions/setvars
66+
with:
67+
varFilePath: ./.github/variables/vm-dependencies.env
68+
- name: Output Az CLi version
69+
id: set-az-cli-version
70+
run: |
71+
echo "azCliVersion=${azCliVersion}" >> $GITHUB_OUTPUT
6372
- name: Get versions of external dependencies
6473
id: get-external-dependencies-version
6574
run: |
6675
curl -Lo external-deps-versions.properties https://raw.githubusercontent.com/Azure/azure-javaee-iaas/main/external-deps-versions.properties
6776
source external-deps-versions.properties
6877
echo "bicepVersion=${BICEP_VERSION}" >> $GITHUB_ENV
6978
echo "refArmttk=${ARM_TTK_REFERENCE}" >> $GITHUB_ENV
70-
- uses: actions/[email protected]
71-
- name: Set AZ CLI Version
72-
id: set-az-cli-version
73-
uses: ./.github/actions/setvars
74-
with:
75-
varFilePath: ./.github/variables/vm-dependencies.env
7679
- name: Setup environment variables
7780
id: setup-env-variables-based-on-dispatch-event
7881
run: |

0 commit comments

Comments
 (0)