Skip to content

Commit b1dff81

Browse files
authored
CI: Fix the condition check and permission in the Check Links workflow (#3870)
1 parent e27ac51 commit b1dff81

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: .github/workflows/check-links.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ on:
1515
schedule:
1616
- cron: '0 12 * * 0'
1717

18-
permissions: {}
18+
permissions:
19+
issues: write
1920

2021
jobs:
2122
check_links:
@@ -73,7 +74,7 @@ jobs:
7374
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
7475

7576
- name: Create Issue From File
76-
if: env.lychee_exit_code != 0
77+
if: ${{ steps.lychee.outputs.exit_code }} != 0
7778
run: |
7879
cd repository/
7980
title="Link Checker Report on ${CURRENT_DATE}"

0 commit comments

Comments
 (0)