Skip to content

Commit

Permalink
🐛 Fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: vankichi <[email protected]>
  • Loading branch information
vankichi committed Sep 5, 2024
1 parent 9d8b89c commit df5dd6a
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/linkcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 <https://vald.vdaas/org/docs>
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 }}

0 comments on commit df5dd6a

Please sign in to comment.