Skip to content

Commit

Permalink
fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
chengzeyi committed Nov 12, 2023
1 parent 21a42a6 commit ab4d909
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ on:
push:
branches:
- main
# tags:
# - "v[0-9]+*"
tags:
- "v[0-9]+*"

jobs:
build:
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
dist/*/*.whl
# create release if it's a tag like vx.y.z
- if: github.repository == 'chengzeyi/stable-fast' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
- if: github.repository == 'chengzeyi/stable-fast' && github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/v')
name: Release
uses: softprops/action-gh-release@v1
with :
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wheels_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ jobs:
- name: Define version
id: sfast_version
env:
VERSION_SOURCE: ${{ github.ref_type == 'tag' && 'tag' || 'dev' }}
VERSION_SOURCE: ${{ github.ref_type == 'tag' && 'tag' || 'dev' }}
run: |
set -Eeuo pipefail
git config --global --add safe.directory "*"
Expand Down

0 comments on commit ab4d909

Please sign in to comment.