Skip to content

Commit

Permalink
chore(ci): clean links checker
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez committed Nov 4, 2024
1 parent f3a85cc commit 8f058c7
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions .github/workflows/links_checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- cron: "0 0 * * *"

jobs:
link_checker:
links-checker:
name: Check links and create automated issue if needed
runs-on: self-hosted
env:
Expand Down Expand Up @@ -44,33 +44,17 @@ jobs:
id: last_issue
with:
state: open
labels: |
report
automated issue
labels: broken-links
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create issue from report file
if: steps.last_issue.outputs.has_found == 'false'
- name: Create or update report
uses: peter-evans/create-issue-from-file@e8ef132d6df98ed982188e460ebb3b5d4ef3a9cd # pin@v4
with:
title: Link checker report
content-filepath: ${{ env.LYCHEE_OUT }}
issue-number: ${{ steps.last_issue.outputs.issue_number }}
labels: |
report
automated issue
- name: Update last report open issue created
if: steps.last_issue.outputs.has_found == 'true'
uses: peter-evans/create-issue-from-file@e8ef132d6df98ed982188e460ebb3b5d4ef3a9cd # pin@v4
with:
title: Link checker report
content-filepath: ${{ env.LYCHEE_OUT }}
issue-number: ${{ steps.last_issue.outputs.issue_number }}
labels: |
report
automated issue
labels: broken-links

- name: Close last report open issue
if: steps.lychee.outputs.exit_code == 0
Expand Down

0 comments on commit 8f058c7

Please sign in to comment.