From 70d666e38d6bfac4132fc66d3c7adbeb57dc9588 Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Thu, 11 Apr 2024 08:01:08 +0800 Subject: [PATCH] CI: Use gh to create issues in Check Links workflow (#3166) --- .github/workflows/check-links.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check-links.yml b/.github/workflows/check-links.yml index 7afc0aac564..cb6881b4c5f 100644 --- a/.github/workflows/check-links.yml +++ b/.github/workflows/check-links.yml @@ -68,7 +68,8 @@ jobs: - name: Create Issue From File if: env.lychee_exit_code != 0 - uses: peter-evans/create-issue-from-file@v5 - with: - title: Link Checker Report on ${{ steps.date.outputs.date }} - content-filepath: ./lychee/out.md + run: | + title="Link Checker Report on ${{ steps.date.outputs.date }}" + gh issue create --title "$title" --body-file ./lychee/out.md + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}