Skip to content

Commit a92036c

Browse files
authored
#1370 Reply details from issue bot
1 parent 0259c1d commit a92036c

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

.github/workflows/issuebot.yml

+25-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
updateIssueIfFailed:
9797
runs-on: ubuntu-latest
9898
needs: updateGallery
99-
if: ${{ failure() && needs.updateGallery.outputs.sanityCheck != 'pass' }}
99+
if: ${{ failure() && needs.updateGallery.outputs.sanityCheck != 'pass' && needs.updateGallery.outputs.sanityCheck != '' }}
100100
steps:
101101
- name: Comment if failed
102102
uses: peter-evans/create-or-update-comment@v4
@@ -132,3 +132,27 @@ jobs:
132132
state: 'closed',
133133
state_reason: 'not_planned'
134134
});
135+
136+
updateIssueIfSometingWentWrong:
137+
runs-on: ubuntu-latest
138+
needs: updateGallery
139+
if: ${{ failure() && needs.updateGallery.outputs.sanityCheck == '' }}
140+
steps:
141+
- name: Comment if failed
142+
uses: peter-evans/create-or-update-comment@v4
143+
with:
144+
issue-number: ${{ github.event.issue.number }}
145+
body: |
146+
We apologize, there may be some technical issues here. You do not need to take any action, please wait for our administrators to take care of it. Thank you for your contribution.
147+
- name: Add labels
148+
uses: actions/github-script@v4
149+
with:
150+
github-token: ${{ secrets.GITHUB_TOKEN }}
151+
script: |
152+
const labelsToAdd = ['resources', 'bug'];
153+
await github.issues.addLabels({
154+
owner: context.repo.owner,
155+
repo: context.repo.repo,
156+
issue_number: context.issue.number,
157+
labels: labelsToAdd
158+
});

0 commit comments

Comments
 (0)