You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/actions/comment-resolved-issues/action.yml
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,8 @@ runs:
18
18
env:
19
19
GH_TOKEN: ${{ inputs.token }}
20
20
run: |
21
+
set -e
22
+
21
23
# Get the previous tag
22
24
PREVIOUS_TAG=$(git tag --sort=-version:refname | sed -n '2p')
23
25
CURRENT_TAG=$(git tag --sort=-version:refname | sed -n '1p')
@@ -58,6 +60,9 @@ runs:
58
60
echo "$ISSUE_NUMBERS" | tr ' ' '\n' | while read -r issue_number; do
59
61
if [ -n "$issue_number" ]; then
60
62
echo "Commenting on issue #$issue_number"
61
-
gh issue comment "$issue_number" --body "A change related to this issue was included in release: $CURRENT_TAG" || echo "::error Failed to comment on #$issue_number"
63
+
if ! gh issue comment "$issue_number" --body "A change related to this issue was included in release: $CURRENT_TAG"; then
64
+
echo "::error::Failed to comment on issue #$issue_number"
0 commit comments