Skip to content

Commit

Permalink
use debug directly
Browse files Browse the repository at this point in the history
  • Loading branch information
Brymastr committed May 25, 2021
1 parent f9ded26 commit 23234b0
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 74 deletions.
131 changes: 61 additions & 70 deletions dist/index.js

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

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { setOutput, setFailed } from '@actions/core';
import { context } from '@actions/github';
import core from '@actions/core';
import { debug } from '@actions/core';

export default function main() {
core.debug(JSON.stringify(process.env));
core.debug(JSON.stringify(context));
debug(JSON.stringify(process.env));
debug(JSON.stringify(context));

const pr = context?.payload?.pull_request;
if (!pr) throw 'Not a pull request';
Expand Down

0 comments on commit 23234b0

Please sign in to comment.