We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82c1fbf commit 9bd3956Copy full SHA for 9bd3956
.github/workflows/release.yml
@@ -18,6 +18,16 @@ jobs:
18
build:
19
runs-on: ubuntu-latest
20
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 }}
31
- name: Checkout
32
uses: actions/checkout@v5
33
with:
0 commit comments