Skip to content

Commit 9bd3956

Browse files
committed
Fix workflow
1 parent 82c1fbf commit 9bd3956

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ jobs:
1818
build:
1919
runs-on: ubuntu-latest
2020
steps:
21+
- name: Validate input
22+
run: |
23+
# validate argument
24+
if [[ $version != develo* ]] && [[ $version != v* ]] && [[ $version != branch* ]] ;
25+
then
26+
echo "Argument '$version' does not start with a d or with a v or a b"
27+
exit 1
28+
fi
29+
env:
30+
version: ${{ github.event_name == 'schedule' && 'develop' || inputs.version }}
2131
- name: Checkout
2232
uses: actions/checkout@v5
2333
with:

0 commit comments

Comments
 (0)