Add support for remaining fix commands to pr action (#4077)

Signed-off-by: svrnm <neumanns@cisco.com>
This commit is contained in:
Severin Neumann 2024-03-01 17:21:14 +01:00 committed by GitHub
parent 44d4f28118
commit 6d2576cb67
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ jobs:
run: |
PR_ACTION=$(echo $COMMENT | grep -oP '/fix:\K\w+')
echo "Action is $PR_ACTION"
ACTION_NAMES="format|submodules|refcache|all"
ACTION_NAMES="all|dict|filenames|format|markdown|refcache|submodules"
if [[ ! "$PR_ACTION" =~ ^($ACTION_NAMES)$ ]]; then
echo "Invalid action name: $PR_ACTION"
echo "Action name should be one of: $ACTION_NAMES"
@ -72,7 +72,7 @@ jobs:
all|refcache)
npm install --omit=optional
;&
format|submodules)
dict|filenames|format|markdown|submodules)
npm run fix:$PR_ACTION
;;
esac