Skip to content

Commit 7518718

Browse files
Merge pull request #22 from lumapps/fix/arg-parsing
fix(bash): parsing arguments
2 parents 1e09ac0 + d649cfa commit 7518718

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: "CI: github-actions-validator"
2+
3+
on:
4+
pull_request:
5+
6+
7+
jobs:
8+
github-actions-validator:
9+
name: Github-actions-validator
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: lumapps/[email protected]

check_message.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
set -eu
44

5-
OPTIONS=$(getopt --long no-jira,allow-temp,jira-in-header,header-length:,jira-types: -- "$@")
6-
5+
OPTIONS=$(getopt --longoptions no-jira,allow-temp,jira-in-header,header-length:,jira-types: --options "" -- "$@")
76
unset COMMIT_VALIDATOR_ALLOW_TEMP COMMIT_VALIDATOR_NO_JIRA COMMIT_VALIDATOR_NO_REVERT_SHA1 GLOBAL_JIRA_IN_HEADER GLOBAL_MAX_LENGTH GLOBAL_JIRA_TYPES
87

98
eval set -- $OPTIONS

0 commit comments

Comments
 (0)