From 3b6f5c0a4bf4e9cf51406112d99cd456f5654325 Mon Sep 17 00:00:00 2001 From: Jeongan Lee <84510455+fkdl0048@users.noreply.github.com> Date: Thu, 1 Aug 2024 22:20:57 +0900 Subject: [PATCH] Update TodoClosed.yml --- .github/workflows/TodoClosed.yml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/TodoClosed.yml b/.github/workflows/TodoClosed.yml index b5a38d7..6724866 100644 --- a/.github/workflows/TodoClosed.yml +++ b/.github/workflows/TodoClosed.yml @@ -11,6 +11,9 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + ref: main - name: Set up Node.js uses: actions/setup-node@v4 @@ -35,16 +38,7 @@ jobs: run: | git config --global user.name 'github-actions[bot]' git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' - git checkout -b issue-to-md git add . git commit -m "Add markdown file for closed issue #${ISSUE_NUMBER}" - git push origin issue-to-md - - - name: Create Pull Request - uses: peter-evans/create-pull-request@v5 - with: - token: ${{ secrets.GITHUB_TOKEN }} - branch: issue-to-md - title: 'Add markdown file for closed issue' - body: 'This PR adds a markdown file for the closed issue #${ISSUE_NUMBER}.' - base: main + git pull --rebase origin main + git push origin main