Skip to content

Commit 43b3a3a

Browse files
committed
2 parents 7222371 + 955d3ba commit 43b3a3a

File tree

2 files changed

+30
-18
lines changed

2 files changed

+30
-18
lines changed

.github/workflows/issue.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/issue_check.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: issue_check
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
workflow_dispatch:
7+
inputs:
8+
issue_url:
9+
description: 'issue url'
10+
required: true
11+
default: 'https://github.com/[user]/[repo]/issues/[id]'
12+
13+
jobs:
14+
issue_check:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: prepare software
19+
run: |
20+
pip install PyGithub
21+
cd ..
22+
wget https://raw.githubusercontent.com/chenxuuu/action/main/scripts/issue_check.py
23+
- name: check issue
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.ISSUE_CHECK_TOKEN }}
26+
ISSUE_URL: ${{ github.event.issue.html_url }}
27+
ISSUE_URL_INPUT: ${{ github.event.inputs.issue_url }}
28+
run: |
29+
cd ..
30+
python issue_check.py

0 commit comments

Comments
 (0)