This repository was archived by the owner on May 26, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +18
-9
lines changed
Expand file tree Collapse file tree 1 file changed +18
-9
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments