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

Commit d830a8e

Browse files
committed
Update rename_project.yml
1 parent 83915da commit d830a8e

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

.github/workflows/rename_project.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,23 @@ jobs:
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 }}"
3030
31-
- name: Get last commit message
32-
id: last-commit-message
31+
- name: This runs only once
3332
run: |
34-
echo "::set-output name=msg::$(git log -1 --pretty=%s)"
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)"
3544

36-
- uses: stefanzweifel/git-auto-commit-action@v4
37-
with:
38-
commit_message: "✅ Ready to clone and code."
39-
# commit_message: ${{ steps.last-commit-message.outputs.msg }}
40-
# commit_options: '--amend --no-edit'
41-
push_options: --force
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

0 commit comments

Comments
 (0)