Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: migration wf - groupId validation to allow '-' #15

Merged
merged 2 commits into from
Sep 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/0.initial.migrate-repo-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ jobs:
env:
INPUT_PARAM: ${{ inputs.group }}
run: |
if [[ ! $INPUT_PARAM =~ ^[a-z0-9]([._]?[a-z0-9]+)*$ ]]; then
if [[ ! $INPUT_PARAM =~ ^[a-z0-9]([._-]?[a-z0-9]+)*$ ]]; then
echo "Invalid value for 'group' param: $INPUT_PARAM"
echo "Must be all lowercase, no whitespaces, no special characters but underscore and dots, no consecutive dots."
echo "Must be all lowercase, no whitespaces, no special characters but '-', '_' and dots, no consecutive dots."
exit 1
fi
- name: Validate input param 'name'
Expand All @@ -55,7 +55,7 @@ jobs:
run: |
if [[ ! $INPUT_PARAM =~ ^[a-z_]([._]?[a-z_][a-z0-9_]*)*$ ]]; then
echo "Invalid value for 'package': $INPUT_PARAM"
echo "Must conform to all lowercase, no whitespaces, no special characters but underscore, separated by dots, no consecutive dots, no element beginning with a number."
echo "Must conform to all lowercase, no whitespaces, no special characters but '_', separated by dots, no consecutive dots, no element beginning with a number."
exit 1
fi

Expand Down