Skip to content

Commit

Permalink
ci: fix release tags (#114)
Browse files Browse the repository at this point in the history
* ci: fix release tags

* ci: fix regex for release
  • Loading branch information
vcastellm authored Oct 9, 2024
1 parent edabc4c commit d94418f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Release

on:
push:
tags:
# run only against tags that follow semver (https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string)
- 'v[0-9]+.[0-9]+.[0-9]+*'
push:
tags:
- 'v*.*.*'
- 'v*.*.*-*'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand Down Expand Up @@ -33,9 +33,6 @@ jobs:
TAGS: ${{ steps.meta.outputs.tags }}
VERSION: ${{ steps.meta.outputs.version }}
steps:
- name: validate tag
run: echo ${{ github.ref_name }} | grep -qE '^v[0-9]+\.[0-9]+\.[0-9]+(-rc\.[0-9]+)?$'

- name: Prepare
run: |
platform=${{ matrix.platform }}
Expand Down

0 comments on commit d94418f

Please sign in to comment.