Skip to content

Commit

Permalink
🐛 Fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: vankichi <kyukawa315@gmail.com>
  • Loading branch information
vankichi committed Sep 6, 2024
1 parent 9d8b89c commit 143d956
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/linkcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,32 @@ on:
pull_request:
schedule:
- cron: "0 0 * * *"

env:
GITHUB_USER: ${{ secrets.DISPATCH_USER }}
GITHUB_TOKEN: ${{ secrets.DISPATCH_TOKEN }}

jobs:
linkCheck:
runs-on: ubuntu-latest
steps:
- name: Checkout Actions
uses: actions/checkout@v4
- name: Setup
run: |
make subup
- 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: ./public/docs/* --exclude https://github.com/vdaas/vald/*
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
- 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

0 comments on commit 143d956

Please sign in to comment.