Update main.yml

This commit is contained in:
Muhammed Kalkan 2022-05-28 19:20:55 +03:00 committed by GitHub
parent 149b1a2d83
commit 42aec9b26e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -18,8 +18,8 @@ jobs:
- name: Export version to variable - name: Export version to variable
run: | run: |
if [ "$RUNNER_OS" == "Windows" ]; then if [ "$RUNNER_OS" == "Windows" ]; then
set /P LENS_VERSION<= version export LENS_VERSION=$(cat version)
set GITHUB_ENV=LENS_VERSION=%LENS_VERSION% echo "LENS_VERSION=$LENS_VERSION" >> $GITHUB_ENV
else else
export LENS_VERSION=$(cat version) export LENS_VERSION=$(cat version)
echo "LENS_VERSION=$LENS_VERSION" >> $GITHUB_ENV echo "LENS_VERSION=$LENS_VERSION" >> $GITHUB_ENV