Skip to content

Commit

Permalink
Fix @actions/github usage vs 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wjrogers committed Nov 17, 2020
1 parent a89e3e1 commit 1da0aaa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12655,7 +12655,7 @@ module.exports = inputs;
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {

const core = __webpack_require__(2186);
const { context, GitHub } = __webpack_require__(5438);
const { context, getOctokit } = __webpack_require__(5438);
const glob = __webpack_require__(8090);

const bytes = __webpack_require__(6966);
Expand Down Expand Up @@ -12728,7 +12728,7 @@ async function uploadAssets(github, uploadUrl, patterns) {

async function run() {
try {
const github = new GitHub(inputs.githubToken);
const github = getOctokit(inputs.githubToken);

// gets an existing release or creates a new draft release
const release = await getOrCreateRelease(github);
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const core = require("@actions/core");
const { context, GitHub } = require("@actions/github");
const { context, getOctokit } = require("@actions/github");
const glob = require("@actions/glob");

const bytes = require("bytes");
Expand Down Expand Up @@ -72,7 +72,7 @@ async function uploadAssets(github, uploadUrl, patterns) {

async function run() {
try {
const github = new GitHub(inputs.githubToken);
const github = getOctokit(inputs.githubToken);

// gets an existing release or creates a new draft release
const release = await getOrCreateRelease(github);
Expand Down

0 comments on commit 1da0aaa

Please sign in to comment.