Skip to content

Commit ea996c7

Browse files
fix: migration wf - groupId validation to allow '-' (#15)
1 parent c80770e commit ea996c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/0.initial.migrate-repo-template.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ jobs:
3535
env:
3636
INPUT_PARAM: ${{ inputs.group }}
3737
run: |
38-
if [[ ! $INPUT_PARAM =~ ^[a-z0-9]([._]?[a-z0-9]+)*$ ]]; then
38+
if [[ ! $INPUT_PARAM =~ ^[a-z0-9]([._-]?[a-z0-9]+)*$ ]]; then
3939
echo "Invalid value for 'group' param: $INPUT_PARAM"
40-
echo "Must be all lowercase, no whitespaces, no special characters but underscore and dots, no consecutive dots."
40+
echo "Must be all lowercase, no whitespaces, no special characters but '-', '_' and dots, no consecutive dots."
4141
exit 1
4242
fi
4343
- name: Validate input param 'name'
@@ -55,7 +55,7 @@ jobs:
5555
run: |
5656
if [[ ! $INPUT_PARAM =~ ^[a-z_]([._]?[a-z_][a-z0-9_]*)*$ ]]; then
5757
echo "Invalid value for 'package': $INPUT_PARAM"
58-
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."
58+
echo "Must conform to all lowercase, no whitespaces, no special characters but '_', separated by dots, no consecutive dots, no element beginning with a number."
5959
exit 1
6060
fi
6161

0 commit comments

Comments
 (0)