Skip to content

Commit 59fcd4d

Browse files
committed
ci
1 parent e24a5a8 commit 59fcd4d

3 files changed

Lines changed: 57 additions & 14 deletions

File tree

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI Failure Issue
2+
3+
on:
4+
workflow_run:
5+
workflows:
6+
- github pages
7+
types: [completed]
8+
9+
jobs:
10+
notify:
11+
if: contains(fromJSON('["failure","timed_out","action_required"]'), github.event.workflow_run.conclusion)
12+
permissions:
13+
issues: write
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Create failure issue
17+
env:
18+
GH_TOKEN: ${{ github.token }}
19+
REPOSITORY: ${{ github.repository }}
20+
WORKFLOW_NAME: ${{ github.event.workflow_run.name }}
21+
CONCLUSION: ${{ github.event.workflow_run.conclusion }}
22+
HEAD_BRANCH: ${{ github.event.workflow_run.head_branch }}
23+
HEAD_SHA: ${{ github.event.workflow_run.head_sha }}
24+
ACTOR: ${{ github.event.workflow_run.actor.login }}
25+
RUN_URL: ${{ github.event.workflow_run.html_url }}
26+
run: |
27+
body_file="$(mktemp)"
28+
cat > "$body_file" <<EOF
29+
@sunnylqm CI run failed.
30+
31+
Repository: $REPOSITORY
32+
Workflow: $WORKFLOW_NAME
33+
Conclusion: $CONCLUSION
34+
Branch: $HEAD_BRANCH
35+
Commit: $HEAD_SHA
36+
Actor: $ACTOR
37+
Run: $RUN_URL
38+
EOF
39+
40+
gh issue create \
41+
--repo "$REPOSITORY" \
42+
--title "[CI failed] $REPOSITORY / $WORKFLOW_NAME" \
43+
--body-file "$body_file"

bun.lock

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"@rsbuild/core": "^1.7.5",
1616
"@rsbuild/plugin-react": "^1.4.6",
1717
"@rsbuild/plugin-svgr": "^1.3.1",
18-
"@tanstack/react-query": "^5.97.0",
18+
"@tanstack/react-query": "^5.99.0",
1919
"antd": "^6.3.5",
2020
"dayjs": "^1.11.20",
2121
"git-url-parse": "^16.1.0",
@@ -37,7 +37,7 @@
3737
"@types/react": "^19",
3838
"@types/react-dom": "^19",
3939
"@types/react-router-dom": "^5.3.3",
40-
"@typescript/native-preview": "^7.0.0-dev.20260410.1",
40+
"@typescript/native-preview": "^7.0.0-dev.20260412.1",
4141
"mitata": "^1.0.34",
4242
"tailwindcss": "^4.2.2",
4343
"typescript": "^6.0.2"

0 commit comments

Comments
 (0)