Skip to content

Commit f4d9ef4

Browse files
committed
ci: Add additional triggers for CI release workflow
* add x.y.z-a tag support * add manual trigger stuff Signed-off-by: Ava Hahn <a.hahn@f5.com>
1 parent 8be123d commit f4d9ef4

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/unitctl.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ on:
1010
- master
1111
tags:
1212
- '[0-9]+.[0-9]+.[0-9]+'
13+
- '[0-9]+.[0-9]+.[0-9]+-[0-9]+'
14+
workflow_dispatch:
15+
inputs:
16+
version:
17+
description: "Semver tag"
18+
type: environment
19+
required: true
1320

1421
permissions:
1522
contents: write
@@ -92,12 +99,6 @@ jobs:
9299
- run: rustup update stable
93100
- run: rustup target add ${{ matrix.target }}
94101

95-
- name: Install cross
96-
if: matrix.target == 'aarch64-unknown-linux-gnu'
97-
uses: taiki-e/install-action@v2
98-
with:
99-
tool: cross
100-
101102
- uses: Swatinem/rust-cache@v2
102103
with:
103104
prefix-key: rust-${{ matrix.build }}
@@ -136,7 +137,7 @@ jobs:
136137

137138
- name: Get the version from the tag
138139
run: |
139-
version=${{ github.ref_name }}
140+
version=${version:=${{ github.ref_name }}
140141
short="${version#*/}"
141142
echo $version; echo $short
142143
echo "VERSION=$version" >> $GITHUB_ENV

0 commit comments

Comments
 (0)