Skip to content

Commit

Permalink
Update TodoClosed.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fkdl0048 authored Aug 1, 2024
1 parent 301b0a9 commit 3b6f5c0
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/TodoClosed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 3b6f5c0

Please sign in to comment.