Skip to content

Commit 088ce51

Browse files
committed
issue action
1 parent a296ea2 commit 088ce51

File tree

3 files changed

+59
-0
lines changed

3 files changed

+59
-0
lines changed

.github/workflows/issue.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Issue
2+
on:
3+
issues:
4+
types: [opened]
5+
issue_comment:
6+
types: [created]
7+
jobs:
8+
Issue:
9+
runs-on: ubuntu-20.04
10+
steps:
11+
- run: echo "github.event_name ${{ github.event_name }}"
12+
- run: echo "github.ref ${{ github.ref }}"
13+
- run: echo "github.repository ${{ github.repository }}"
14+
- run: echo "github.workspace ${{ github.workspace }}"
15+
- run: echo "runner.os ${{ runner.os }}"
16+
- run: pwd
17+
- name: Check out repository code
18+
uses: actions/checkout@v4
19+
- run: npm install
20+
- run: ls "${{ github.workspace }}"
21+
- name: Main work
22+
env:
23+
GITHUB_TOKEN: ${{ github.token }}
24+
run: "${{ github.workspace }}/issue-action.js"
25+
- run: echo "job.status ${{ job.status }}."

issue-action.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env node
2+
console.log('Starting action.js')
3+
const github = require('@actions/github');
4+
const payload = github.context.payload
5+
console.log(payload)

package.json

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"bin": {
3+
"china-dictatorship": "china-dictatorship"
4+
},
5+
"dependencies": {},
6+
"description": "2018新疆改造中心,1989六四事件,1999法轮功 ,2019 996.ICU, 2018包子露宪,2015 710律师劫,2015巴拿马文件 邓家贵,2017低端人口,2008西藏骚乱",
7+
"devDependencies": {
8+
"@actions/core": "^1.2.7",
9+
"@actions/github": "^4.0.0"
10+
},
11+
"files": [
12+
"index.js",
13+
"china-dictatorship",
14+
"README.md",
15+
"README.adoc",
16+
"README.html"
17+
],
18+
"keywords": [
19+
"china",
20+
"dictatorship"
21+
],
22+
"license": "CC-BY-SA-4.0",
23+
"name": "china-dictatorship",
24+
"repository": "cirosantilli/china-dictatorship",
25+
"scripts": {
26+
"prepublishOnly": "cp README.adoc README.md;make"
27+
},
28+
"version": "0.0.74"
29+
}

0 commit comments

Comments
 (0)