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

This commit is contained in:
Jakub Chrzanowski 2020-12-28 12:21:50 +01:00
parent 64804a6af7
commit 5e6b3d6d69
2 changed files with 4 additions and 11 deletions

View File

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

View File

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