mirror of
https://github.com/JetBrains/intellij-platform-plugin-template.git
synced 2024-10-27 20:44:05 +00:00
Template Cleanup: escape GitHub username to avoid incorrect characters in class package name #74
This commit is contained in:
parent
64804a6af7
commit
5e6b3d6d69
5
.github/workflows/template-cleanup.yml
vendored
5
.github/workflows/template-cleanup.yml
vendored
@ -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/*
|
||||||
|
10
CHANGELOG.md
10
CHANGELOG.md
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user