From df5dd6a8c5e42b0e40e92e69dc35622c76c84b4c Mon Sep 17 00:00:00 2001 From: vankichi Date: Thu, 5 Sep 2024 17:52:36 +0900 Subject: [PATCH] :bug: Fix typo Signed-off-by: vankichi --- .github/workflows/linkcheck.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/linkcheck.yml b/.github/workflows/linkcheck.yml index 21e8f61db..3e8a2c484 100644 --- a/.github/workflows/linkcheck.yml +++ b/.github/workflows/linkcheck.yml @@ -5,10 +5,6 @@ on: schedule: - cron: "0 0 * * *" -env: - GITHUB_USER: ${{ secrets.DISPATCH_USER }} - GITHUB_TOKEN: ${{ secrets.DISPATCH_TOKEN }} - jobs: linkCheck: runs-on: ubuntu-latest @@ -17,18 +13,25 @@ jobs: uses: actions/checkout@v4 - name: Link Check id: lychee - uses: lycheeverse/lychee-actions@v1 + uses: lycheeverse/lychee-action@v1 with: - args: --base https://vald.vdaas/org/docs - output: ./result.md + args: --base + output: ./check.md fail: false - name: Create Issue From File if: env.lychee_exit_code != 0 && github.event_name != 'pull_request' run: | ISSUE_TITLE="Dead Links were detected" gh issue create --title ISSUE_TITLE \ - --body-file ./result.md + --body-file ./check.md + env: + GITHUB_USER: ${{ secrets.DISPATCH_USER }} + GITHUB_TOKEN: ${{ secrets.DISPATCH_TOKEN }} - name: Add Comment On Pull Request From File if: env.lychee_exit_code != 0 && github.event_name == 'pull_request' run: | - gh pr comment ${{ github.event.number }} --body-file ./result.md + gh pr comment ${{ github.event.number }} --body-file ./check.md + env: + GITHUB_USER: ${{ secrets.DISPATCH_USER }} + GITHUB_TOKEN: ${{ secrets.DISPATCH_TOKEN }} +