Skip to content

Commit 0ae2a87

Browse files
committed
add blossom-status-init.yml
1 parent 1888296 commit 0ae2a87

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Blossom-Status-Init
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened]
5+
6+
jobs:
7+
Init-Status:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Update commit status
11+
uses: actions/github-script@v6
12+
with:
13+
script: |
14+
github.rest.repos.createCommitStatus({
15+
owner: context.repo.owner,
16+
repo: context.repo.repo,
17+
context: 'blossom-ci',
18+
sha: context.event.pull_request.head.sha,
19+
state: 'pending',
20+
description: 'need CI pass',
21+
})
22+
23+

0 commit comments

Comments
 (0)