Commit 8ef591c
leave_pr_comment: only run if PR_NUM is set
This change fixes the errors that are raised when the workflow is
triggered by a push event, which does not have a PR number associated
with it. Also, no need to error if the PR number is invalid or if the
workflow file is changed in the PR - just issue a warning.
Signed-off-by: Luca Burelli <l.burelli@arduino.cc>1 parent d4cfe3a commit 8ef591c
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | | - | |
| 41 | + | |
41 | 42 | | |
42 | | - | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
0 commit comments