Initial commit
This commit is contained in:
commit
9a7680cb96
15 changed files with 595 additions and 0 deletions
37
.github/workflows/rename_template.yml
vendored
Normal file
37
.github/workflows/rename_template.yml
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
---
|
||||
name: Rename the template
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
permissions: write-all
|
||||
|
||||
jobs:
|
||||
rename-template:
|
||||
if: ${{ !contains(github.repository, 'template') }}
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Check out the codebase
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set $REPOSITORY_NAME
|
||||
run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}' | tr '-' '_' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
|
||||
shell: bash
|
||||
|
||||
- name: Set $REPOSITORY_URL
|
||||
run: echo "REPOSITORY_URL=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
|
||||
shell: bash
|
||||
|
||||
- name: Set $REPOSITORY_OWNER
|
||||
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_URL }}"
|
||||
.github/workflows/rename_project.sh -a ${{ env.REPOSITORY_OWNER }} -n ${{ env.REPOSITORY_NAME }} -u ${{ env.REPOSITORY_URL }}
|
||||
|
||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: "✅ Ready to clone and code."
|
||||
push_options: --force
|
||||
Loading…
Add table
Add a link
Reference in a new issue