Template Cleanup: escape GitHub username to avoid incorrect characters in class package name #74

pull/75/head
Jakub Chrzanowski 3 years ago
parent 64804a6af7
commit 5e6b3d6d69

@ -29,9 +29,10 @@ jobs:
# Prepare variables
NAME="${GITHUB_REPOSITORY##*/}"
SAFE_NAME=$(echo $NAME | sed 's/[^a-zA-Z0-9]//g' | tr '[:upper:]' '[:lower:]')
ACTOR=$(echo $GITHUB_ACTOR | tr '[:upper:]' '[:lower:]')
GROUP="com.github.$ACTOR.$SAFE_NAME"
SAFE_NAME=$(echo $NAME | sed 's/[^a-zA-Z0-9]//g' | tr '[:upper:]' '[:lower:]')
SAFE_ACTOR=$(echo $ACTOR | sed 's/[^a-zA-Z0-9]//g' | tr '[:upper:]' '[:lower:]')
GROUP="com.github.$SAFE_ACTOR.$SAFE_NAME"
# Replace placeholders in the template-cleanup files
sed -i "s/%NAME%/$NAME/g" .github/template-cleanup/*

@ -3,17 +3,9 @@
# IntelliJ Platform Plugin Template Changelog
## [Unreleased]
### Added
### Changed
### Deprecated
### Removed
### Fixed
- Template Cleanup: escape GitHub username to avoid incorrect characters in class package name
### Security
## [0.8.0]
### Added
- Dependabot integration

Loading…
Cancel
Save