-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[add] Template Initialization script & action
[optimize] update Upstream packages
- Loading branch information
Showing
4 changed files
with
497 additions
and
392 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Template Repository initialization | ||
on: | ||
push: | ||
branches: | ||
- main | ||
env: | ||
TEMPLATE_OWNER: idea2app | ||
TEMPLATE_NAME: Vue-MobX-Prime-ts | ||
|
||
jobs: | ||
replace-repository-name: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- if: github.repository != format('{0}/{1}', env.TEMPLATE_OWNER, env.TEMPLATE_NAME) | ||
run: | | ||
sh .github/workflows/replace-repository-name.sh \ | ||
${{ env.TEMPLATE_OWNER }} ${{ env.TEMPLATE_NAME }} \ | ||
${{ github.repository_owner }} ${{ github.event.repository.name }} | ||
rm -f .github/workflows/init-template.yml | ||
- uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: '[fix] replace Repository Name' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#! /usr/bin/env bash | ||
|
||
SourceOwner=$1 | ||
SourceName=$2 | ||
TargetOwner=$3 | ||
TargetName=$4 | ||
|
||
sed -i "s/$SourceOwner\/$SourceName/$TargetOwner\/$TargetName/ig" $(grep -i $SourceOwner/$SourceName -rl .) | ||
sed -i "s/$SourceName/$TargetName/ig" $(grep -i $SourceName -rl .) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
1e023b9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for next-bootstrap-ts ready!
✅ Preview
https://next-bootstrap-nin43obnl-stevending1sts-projects.vercel.app
Built with commit 1e023b9.
This pull request is being automatically deployed with vercel-action