File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,13 @@ jobs:
23
23
changed_file="$(git diff ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} ${{ env.file }})"
24
24
25
25
if [ -z "$changed_file" ]; then
26
- exit 1
26
+ echo "no_changes=true" >> $GITHUB_OUTPUT
27
27
else
28
28
added_match=$(echo "$changed_file" | grep -E '^\+${{ env.regex }}' || true)
29
29
removed_match=$(echo "$changed_file" | grep -E '^\-${{ env.regex }}' || true)
30
30
31
31
if [[ -z "$added_match" ]] && [[ -z "$removed_match" ]]; then
32
- exit 1
32
+ echo "no_changes=true" >> $GITHUB_OUTPUT
33
33
fi
34
34
35
35
if [[ -n "$added_match" ]]; then
45
45
fi
46
46
fi
47
47
48
- - if : success()
48
+ - if : ${{ steps.changes.outputs.no_changes != 'true' }}
49
49
name : Found Change Comment
50
50
uses : thollander/actions-comment-pull-request@v3
51
51
with :
58
58
${{ steps.changes.outputs.added_match }}
59
59
```
60
60
61
- - if : failure()
61
+ - if : ${{ steps.changes.outputs.no_changes == 'true' }}
62
62
name : Missing Change Comment
63
63
uses : thollander/actions-comment-pull-request@v3
64
64
with :
Original file line number Diff line number Diff line change 1
- golang 1.24.0
1
+ golang 1.24.6
Original file line number Diff line number Diff line change 1
1
module github.com/emmahsax/go-git-helper
2
2
3
- go 1.24.0
3
+ go 1.24
4
4
5
5
require (
6
6
github.com/google/go-github/v69 v69.1.0
You can’t perform that action at this time.
0 commit comments