From b6e066ee127519fbf02b3a47ecaaa392d12a2849 Mon Sep 17 00:00:00 2001 From: Yugandharkumar Date: Tue, 8 Aug 2023 15:37:11 +0530 Subject: [PATCH] Update Preserve-commits.yml --- .github/workflows/Preserve-commits.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Preserve-commits.yml b/.github/workflows/Preserve-commits.yml index c96620c756e..c8051a6aee1 100644 --- a/.github/workflows/Preserve-commits.yml +++ b/.github/workflows/Preserve-commits.yml @@ -18,7 +18,8 @@ jobs: - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - name: List files in the repository run: | - # ls ${{ github.workspace }} + # ls ${{ github.workspace }} + git clone https://github.com/${{ github.repository }} git branch touch Dev_commits git config --global user.email "yugaa22@gmail.com" @@ -26,5 +27,7 @@ jobs: git log -1 | grep commit | awk '{print $2}' >> Dev_commits git add . git commit -m "Developper_commits" + git remote set-url origin https://${{ github.actor }}:$GITHUB_TOEKN@github.com/${{ github.repository }} + git push - run: echo "🍏 This job's status is ${{ job.status }}."