Skip to content

Commit

Permalink
Merge pull request #22 from lumapps/fix/arg-parsing
Browse files Browse the repository at this point in the history
fix(bash): parsing arguments
  • Loading branch information
sebastien-boulle authored Oct 29, 2021
2 parents 1e09ac0 + d649cfa commit 7518718
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/github-actions-validator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: "CI: github-actions-validator"

on:
pull_request:


jobs:
github-actions-validator:
name: Github-actions-validator
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: lumapps/github-actions-validator@0.0.2
3 changes: 1 addition & 2 deletions check_message.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

set -eu

OPTIONS=$(getopt --long no-jira,allow-temp,jira-in-header,header-length:,jira-types: -- "$@")

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

eval set -- $OPTIONS
Expand Down

0 comments on commit 7518718

Please sign in to comment.