Change back to output file (#1113)
* Change back to output file This was recently fixed in the new v1.9.0 action * fix: indent * remove token * revert to secret token * fix delete * remove extra lines
This commit is contained in:
1 parent
270f67ab8a
commit
a19d7083b5
1 file changed
+12
-26
@@ -10,6 +10,7 @@ on:
|
||||
- cron: "0 0 * * *"
|
||||
|
||||
env:
|
||||
LYCHEE_OUTPUT: lychee/out.md
|
||||
WORKFLOW_ISSUE_TITLE: "Link Checker Dashboard 🔗"
|
||||
|
||||
jobs:
|
||||
@@ -17,30 +18,14 @@ jobs:
|
||||
name: Lychee
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Homebrew
|
||||
uses: Homebrew/actions/setup-homebrew@master
|
||||
|
||||
- name: Setup Workflow Tools
|
||||
shell: bash
|
||||
run: brew install lychee
|
||||
|
||||
- name: Scan For Broken Links
|
||||
shell: bash
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
run: |
|
||||
lychee --verbose --no-progress \
|
||||
--format markdown \
|
||||
--output results.md \
|
||||
--exclude-all-private \
|
||||
--exclude-mail \
|
||||
./**/*.md || true
|
||||
|
||||
- name: Print Output
|
||||
run: cat results.md
|
||||
- name: Scan for broken links
|
||||
uses: lycheeverse/lychee-action@v1
|
||||
id: lychee
|
||||
with:
|
||||
token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
args: --verbose --no-progress --exclude-mail './**/*.md'
|
||||
output: "${{ env.LYCHEE_OUTPUT }}"
|
||||
debug: true
|
||||
|
||||
- name: Find Link Checker Issue
|
||||
id: find-issue
|
||||
@@ -58,9 +43,10 @@ jobs:
|
||||
echo "issue-number=${issue_number}" >> $GITHUB_OUTPUT
|
||||
echo "${issue_number}"
|
||||
|
||||
- name: Update Issue
|
||||
- name: Create or Update Issue
|
||||
uses: peter-evans/create-issue-from-file@v4
|
||||
with:
|
||||
token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
title: "${{ env.WORKFLOW_ISSUE_TITLE }}"
|
||||
issue-number: "${{ steps.find-issue.outputs.issue-number || '' }}"
|
||||
content-filepath: results.md
|
||||
content-filepath: "${{ env.LYCHEE_OUTPUT }}"
|
||||
Reference in new issue
Block a user