File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -111,8 +111,18 @@ jobs:
111
111
Write-Error "An error occurred: $_"
112
112
}
113
113
- name : Extract version and add it to env variables
114
+ if : ${{ inputs.smoke && matrix.os != 'windows' }}
115
+ run : |
116
+ echo "TESTED_VERSION=$(cat ./TESTED_VERSION.txt)" >> ${GITHUB_ENV}
117
+ - name : Extract version and add it to env variables (Windows)
118
+ if : ${{ inputs.smoke && matrix.os == 'windows' }}
114
119
run : |
115
- cat ./TESTED_VERSION.txt >> ${GITHUB_ENV}
120
+ try {
121
+ $version = Get-Content -Path .\TESTED_VERSION.txt
122
+ echo "TESTED_VERSION=$version" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
123
+ } catch {
124
+ Write-Error "An error occurred: $_"
125
+ }
116
126
- name : E2E Test (Smoke)
117
127
if : ${{ inputs.smoke && matrix.os != 'windows' }}
118
128
run : |
Original file line number Diff line number Diff line change 75
75
fetch-depth : 0
76
76
- name : Output version
77
77
run : |
78
- echo "TESTED_VERSION=$( jq -r '.version' package.json)" > TESTED_VERSION.txt
78
+ jq -r '.version' package.json > TESTED_VERSION.txt
79
79
cat TESTED_VERSION.txt
80
80
- uses : actions/upload-artifact@v4
81
81
with :
You can’t perform that action at this time.
0 commit comments