Skip to content

Commit

Permalink
fix windows
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghaoqi committed Aug 8, 2023
1 parent 78d4480 commit fefee58
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/compiler-python-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,17 @@ jobs:
with:
python-version: 3.7

- name: Check latest commit for tag(windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
if (git tag --points-at HEAD) {
echo "HAS_TAG=true" | Out-File -Append -Encoding ascii $env:GITHUB_ENV
}
- name: Check latest commit for tag
id: check_tag
if: runner.os != 'Windows'
shell: bash
run: |
if [[ $(git tag --points-at HEAD) ]]; then
echo "HAS_TAG=true" >> $GITHUB_ENV
Expand Down

0 comments on commit fefee58

Please sign in to comment.