Skip to content

Commit

Permalink
test2
Browse files Browse the repository at this point in the history
  • Loading branch information
hulk510 committed Jan 17, 2024
1 parent 45097ef commit 436bf23
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,15 @@ export async function run(): Promise<void> {
// MEMO: git contextからheadRefは取得できなそう
const { repo, ref } = github.context

core.info(`repo: ${JSON.stringify(github.context.payload.pull_request)}`)
core.info(`request: ${JSON.stringify(github.context.payload.pull_request)}`)
core.info(
`number: ${JSON.stringify(github.context.payload.pull_request?.number)}`
)
core.info(
`head ref: ${JSON.stringify(
github.context.payload.pull_request?.head.ref
)}`
)
// const eventPath = process.env.GITHUB_EVENT_PATH

const headRef = process.env.GITHUB_HEAD_REF
Expand Down

0 comments on commit 436bf23

Please sign in to comment.