From 58a59350d17cecc1214ee59ea8c6e1ca03d6fd73 Mon Sep 17 00:00:00 2001 From: Evaldo Klock Date: Thu, 15 Aug 2024 09:31:54 -0400 Subject: [PATCH] Update python-app.yml --- .github/workflows/python-app.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 3c6a92b..6d883cb 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -22,7 +22,8 @@ jobs: run: | python -m pip install --upgrade pip pip install flake8 pytest pyinstaller - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + if (Test-Path requirements.txt) { pip install -r requirements.txt } + shell: pwsh - name: Lint with flake8 run: | flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics @@ -39,10 +40,11 @@ jobs: if: matrix.os == 'ubuntu-latest' id: create_tag run: | - VERSION=$(date +"%Y%m%d%H%M%S") - echo "VERSION=$VERSION" >> $GITHUB_ENV + $VERSION = Get-Date -Format "yyyyMMddHHmmss" + echo "VERSION=$VERSION" >> $env:GITHUB_ENV git tag $VERSION git push origin $VERSION + shell: pwsh - name: Create GitHub Release if: matrix.os == 'ubuntu-latest' uses: softprops/action-gh-release@v1