Skip to content

Commit

Permalink
fix: hardcode issue number for dead links dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
onedr0p authored Dec 22, 2023
1 parent 5f46e76 commit a8eda7c
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/lychee.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- cron: "0 0 * * *"

env:
WORKFLOW_ISSUE_LABEL: lint/lychee
WORKFLOW_ISSUE_NUMBER: 6587

jobs:
lychee:
Expand All @@ -30,25 +30,15 @@ jobs:
- name: Scan for broken links
uses: lycheeverse/lychee-action@v1
id: lychee
env:
GITHUB_TOKEN: "${{ steps.app-token.outputs.token }}"
with:
token: "${{ steps.app-token.outputs.token }}"
args: --verbose --no-progress --exclude-mail './**/*.md'
output: /tmp/results.md

- name: Find Link Checker Issue
id: issue-number
uses: micalevisk/last-issue-action@v2
with:
token: "${{ steps.app-token.outputs.token }}"
state: open
labels: "${{ env.WORKFLOW_ISSUE_LABEL }}"

- name: Update Issue
uses: peter-evans/create-issue-from-file@v4
with:
token: "${{ steps.app-token.outputs.token }}"
title: Link Checker Dashboard 🔗
issue-number: "${{ steps.issue-number.outputs.issue-number }}"
issue-number: "${{ env.WORKFLOW_ISSUE_NUMBER }}"
content-filepath: /tmp/results.md
labels: "${{ env.WORKFLOW_ISSUE_LABEL }}"

0 comments on commit a8eda7c

Please sign in to comment.