fix: typo #5
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
name: Rename the project from template | |
on: [push] | |
permissions: write-all | |
jobs: | |
rename-project: | |
if: ${{ !contains(github.repository,'/hiddify-app-extension-template') }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
# by default, it uses a depth of 1 | |
# this fetches all history so that we can read each commit | |
fetch-depth: 0 | |
ref: ${{ github.head_ref }} | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
check-latest: false | |
- run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}' | tr '-' '_' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV | |
shell: bash | |
- run: echo "REPOSITORY_URLNAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV | |
shell: bash | |
- run: echo "REPOSITORY_OWNER=$(echo '${{ github.repository }}' | awk -F '/' '{print $1}')" >> $GITHUB_ENV | |
shell: bash | |
- name: Rename the project | |
run: | | |
echo "Renaming the project with -a(author) ${{ env.REPOSITORY_OWNER }} -n(name) ${{ env.REPOSITORY_NAME }} -u(urlname) ${{ env.REPOSITORY_URLNAME }}" | |
.github/rename_project.sh -a ${{ env.REPOSITORY_OWNER }} -n ${{ env.REPOSITORY_NAME }} -u ${{ env.REPOSITORY_URLNAME }} -d "Awesome Extension ${{ env.REPOSITORY_NAME }} created by ${{ env.REPOSITORY_OWNER }}" | |
rm .github/rename_project.sh | |
rm .github/workflows/rename_project.yaml | |
bash update_hiddify_core.sh | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "✅ Ready to clone and code." | |
# commit_options: '--amend --no-edit' | |
push_options: --force |