Skip to content

Commit 2fda668

Browse files
authored
chore(all): add a comment to the issue created by the Action (#2947)
Add a comment to the issue so that we can receive an email notification. For #2874
1 parent b45b7d3 commit 2fda668

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/librarian.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ jobs:
7777
run: |
7878
ISSUE_TITLE="all: tests failed at HEAD"
7979
BODY="Tests failed at HEAD of the \`main\` branch. Please review Workflow Run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} for detail."
80-
gh issue create --title "$ISSUE_TITLE" --body "$BODY" --label ":rotating_light: critical" -R $GH_REPO
80+
ISSUE_LINK=$(gh issue create --title "$ISSUE_TITLE" --body "$BODY" --label ":rotating_light: critical" -R $GH_REPO)
81+
ISSUE_NUM=${ISSUE_LINK##*/}
82+
gh issue comment $ISSUE_NUM --body "@googleapis/cloud-sdk-librarian-team A critical issue has been created, please respond immediately."
8183
env:
8284
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8385
GH_REPO: ${{ github.repository }}

0 commit comments

Comments
 (0)