Skip to content

Commit

Permalink
Change workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sepisoltani committed May 1, 2024
1 parent ef9365e commit c28596c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- main
tags:
- 'v*' # This will trigger the workflow for any tag starting with 'v'
- '*'
pull_request:
branches:
- main
Expand Down Expand Up @@ -34,11 +34,10 @@ jobs:
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}

release:
needs: test
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v') # Ensure this runs only for tags starting with 'v'
if: ${{ startsWith(github.ref, 'refs/tags/') }}
steps:
- name: Check out code
uses: actions/checkout@v2
Expand Down

0 comments on commit c28596c

Please sign in to comment.