Skip to content

Commit

Permalink
Fixes if condition for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
joncloud authored Jan 27, 2020
1 parent 5ec85b2 commit 6bc3d6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Create GitHub release
uses: actions/create-release@v1
id: create_release
if: startsWith(github.ref, 'v')
if: startsWith(github.ref, 'refs/tags/v')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -53,7 +53,7 @@ jobs:
prerelease: false

- name: Upload GitHub release asset
if: startsWith(github.ref, 'v')
if: startsWith(github.ref, 'refs/tags/v')
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 6bc3d6f

Please sign in to comment.