Skip to content

Commit

Permalink
Simplify the regex used to trigger the Go github action on tags
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Phoen committed Aug 1, 2023
1 parent 5a1a452 commit a3871ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [ "main" ]
tags:
- '^v(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-((0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*))*))?(\+([0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*))?$'
- 'v[0-9]+.[0-9]+.[0-9]+'
pull_request:
branches: [ "main" ]

Expand Down

0 comments on commit a3871ff

Please sign in to comment.