Skip to content

Commit 58a5935

Browse files
authored
Update python-app.yml
1 parent 0d57ab0 commit 58a5935

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/python-app.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ jobs:
2222
run: |
2323
python -m pip install --upgrade pip
2424
pip install flake8 pytest pyinstaller
25-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
25+
if (Test-Path requirements.txt) { pip install -r requirements.txt }
26+
shell: pwsh
2627
- name: Lint with flake8
2728
run: |
2829
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
@@ -39,10 +40,11 @@ jobs:
3940
if: matrix.os == 'ubuntu-latest'
4041
id: create_tag
4142
run: |
42-
VERSION=$(date +"%Y%m%d%H%M%S")
43-
echo "VERSION=$VERSION" >> $GITHUB_ENV
43+
$VERSION = Get-Date -Format "yyyyMMddHHmmss"
44+
echo "VERSION=$VERSION" >> $env:GITHUB_ENV
4445
git tag $VERSION
4546
git push origin $VERSION
47+
shell: pwsh
4648
- name: Create GitHub Release
4749
if: matrix.os == 'ubuntu-latest'
4850
uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)