Skip to content

Commit

Permalink
🐎 ci: release workflow test
Browse files Browse the repository at this point in the history
  • Loading branch information
kiccer committed Apr 7, 2024
1 parent 58d1daa commit aa81ca4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/master_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ jobs:
- name: 创建 tag
run: git tag v${{ steps.package-version.outputs.version }}
# 判断 version 是否已存在
if: ! contains(github.ref, 'refs/tags/v${{ steps.package-version.outputs.version }}')
if: contains(github.ref, 'refs/tags/v${{ steps.package-version.outputs.version }}') == false

- name: 推送 tag
uses: ad-m/github-push-action@v0.7.0
if: ! contains(github.ref, 'refs/tags/v${{ steps.package-version.outputs.version }}')
if: contains(github.ref, 'refs/tags/v${{ steps.package-version.outputs.version }}') == false
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tags: v${{ steps.package-version.outputs.version }}
Expand Down

0 comments on commit aa81ca4

Please sign in to comment.