Skip to content

Commit

Permalink
Fix failure() and tru false strings
Browse files Browse the repository at this point in the history
  • Loading branch information
cofinoa committed May 28, 2024
1 parent 2eca3d9 commit 3aa1a28
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/check_links_cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ jobs:
labels: |
defect, link-checker, report, automated issue
- name: If failure, create issue if missing
if: ${{ steps.check-links.outcome == 'failure' && steps.last-issue.outputs.has-found == false }}
- name: If failure and issue not found, create issue
if: ${{ steps.check-links.outcome == 'failure' && steps.last-issue.outputs.has-found == 'false' }}
uses: peter-evans/create-issue-from-file@v5
with:
title: "Broken links detected in CF Website"
Expand All @@ -60,15 +60,15 @@ jobs:
defect, link-checker, report, automated issue
- name: If failure and issue exists, add comment
if: ${{ failure() && steps.check-links.outcome == 'failure' && steps.last-issue.outputs.has-found == true }}
if: ${{ steps.check-links.outcome == 'failure' && steps.last-issue.outputs.has-found == 'true' }}
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ steps.last-issue.outputs.issue-number }}
body-path: .lychee/results.md
token: ${{ secrets.GITHUB_TOKEN }}

- name: If success and issue is open, add comment
if: ${{ steps.check-links.outcome == 'success' && steps.last-issue.outputs.is-closed == false }}
if: ${{ steps.check-links.outcome == 'success' && steps.last-issue.outputs.is-closed == 'false' }}
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ steps.last-issue.outputs.issue-number }}
Expand Down

0 comments on commit 3aa1a28

Please sign in to comment.