File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -17,18 +17,21 @@ jobs:
17
17
- name : Check links
18
18
id : lychee
19
19
uses :
lycheeverse/[email protected]
20
+ continue-on-error : true # Permite que o workflow continue mesmo se encontrar links quebrados
21
+ env :
22
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
20
23
- name : Create issue
21
- if : env.lychee_exit_code != 0
24
+ if : steps.lychee.outcome != 'success' # Verifica o resultado do passo do Lychee
22
25
uses : peter-evans/create-issue-from-file@v4
23
26
with :
24
27
title : Link checker report
25
28
labels : ' report, automated-issue'
26
29
content-filepath : ./lychee/out.md
27
30
- name : Assign issues and pull requests
28
- if : env.lychee_exit_code != 0
31
+ if : steps.lychee.conclusion != 'success'
29
32
uses :
gustavofreze/[email protected]
30
33
with :
31
- assignees : ' ${{ secrets.ASSIGNEES }} '
34
+ assignees : ' your-github-username '
32
35
github_token : ' ${{ secrets.GITHUB_TOKEN }}'
33
36
allow_self_assign : ' true'
34
37
allow_no_assignees : ' true'
You can’t perform that action at this time.
0 commit comments