Skip to content

Commit

Permalink
trigger unitctl CI on version tags of existing format
Browse files Browse the repository at this point in the history
Signed-off-by: Ava Hahn <[email protected]>
  • Loading branch information
avahahn committed May 9, 2024
1 parent 6d0880c commit 149555d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/unitctl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
branches:
- master
tags:
- unitctl/[0-9]+.[0-9]+.[0-9]+
- '[0-9]+.[0-9]+.[0-9]+'

permissions:
contents: write
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
with:
prefix-key: rust-${{ matrix.build }}
workspaces: ./tools/unitctl -> target
save-if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/unitctl/') }}
save-if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }}

- name: Configure linux arm depedencies
if: matrix.target == 'aarch64-unknown-linux-gnu'
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:

release:
# Create a draft release if a tag
if: startsWith(github.ref, 'refs/tags/unitctl/')
if: startsWith(github.ref, 'refs/tags/')
needs: [build]
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 149555d

Please sign in to comment.