Skip to content
This repository was archived by the owner on May 26, 2025. It is now read-only.

Commit 7582ffb

Browse files
committed
Update rename_project.yml
1 parent d830a8e commit 7582ffb

1 file changed

Lines changed: 6 additions & 21 deletions

File tree

.github/workflows/rename_project.yml

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,9 @@ jobs:
2727
run: |
2828
echo "Renaming the project with -a(author) ${{ env.REPOSITORY_OWNER }} -n(name) ${{ env.REPOSITORY_NAME }} -u(urlname) ${{ env.REPOSITORY_URLNAME }}"
2929
.github/rename_project.sh -a ${{ env.REPOSITORY_OWNER }} -n ${{ env.REPOSITORY_NAME }} -u ${{ env.REPOSITORY_URLNAME }} -d "Awesome ${{ env.REPOSITORY_NAME }} created by ${{ env.REPOSITORY_OWNER }}"
30-
31-
- name: This runs only once
32-
run: |
33-
# use the same author as the initial commit
34-
git config user.email "$(git log -1 --pretty=format:'%ae')"
35-
git config user.name "$(git log -1 --pretty=format:'%an')"
36-
git add .
37-
git commit -m "✅ Ready to clone and code."
38-
git push origin $GITHUB_REF --force
39-
40-
# - name: Get last commit message
41-
# id: last-commit-message
42-
# run: |
43-
# echo "::set-output name=msg::$(git log -1 --pretty=%s)"
44-
45-
# - uses: stefanzweifel/git-auto-commit-action@v4
46-
# with:
47-
# commit_message: "✅ Ready to clone and code."
48-
# # commit_message: ${{ steps.last-commit-message.outputs.msg }}
49-
# # commit_options: '--amend --no-edit'
50-
# push_options: --force
30+
31+
- uses: stefanzweifel/git-auto-commit-action@v4
32+
with:
33+
commit_message: "✅ Ready to clone and code."
34+
# commit_options: '--amend --no-edit'
35+
push_options: --force

0 commit comments

Comments
 (0)