From 80d7827f0382babfaae0d67f9f6141c2172da670 Mon Sep 17 00:00:00 2001 From: Corey Butler Date: Thu, 30 Mar 2023 21:37:13 -0500 Subject: [PATCH] Fixed Octokit import --- src/lib/tag.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/tag.js b/src/lib/tag.js index 97b8e43..12de62e 100644 --- a/src/lib/tag.js +++ b/src/lib/tag.js @@ -1,9 +1,9 @@ import core from '@actions/core' import os from 'os' -import octokit from 'octokit' +import { Octokit } from 'octokit' // Get authenticated GitHub client (Ocktokit): https://github.com/actions/toolkit/tree/master/packages/github#usage -const github = (new octokit({ auth: process.env.GITHUB_TOKEN || process.env.INPUT_GITHUB_TOKEN })).rest +const github = (new Octokit({ auth: process.env.GITHUB_TOKEN || process.env.INPUT_GITHUB_TOKEN })).rest // Get owner and repo from context of payload that triggered the action const [ owner, repo ] = process.env.GITHUB_ACTION_REPOSITORY.split('/')