Skip to content

Commit 66ce8a7

Browse files
committed
issue action
1 parent a296ea2 commit 66ce8a7

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/workflows/issue.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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: ls "${{ github.workspace }}"
20+
- name: Main work
21+
env:
22+
GITHUB_TOKEN: ${{ github.token }}
23+
run: "${{ github.workspace }}/issue-action.js"
24+
- 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)

0 commit comments

Comments
 (0)