Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese committed Nov 28, 2023
1 parent a19365e commit 8cf6863
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const github = require("@actions/github");

async function run() {
try {
//Get input
// Get input
const tag = process.env.TAG || process.env.INPUT_TAG || "";
const repoInput = core.getInput("repo") || process.env.GITHUB_REPOSITORY;

Expand All @@ -18,15 +18,15 @@ async function run() {
const repo = repository.join("/");

const octokit = github.getOctokit(
process.env.GITHUB_TOKEN || core.getInput("github_token"),
process.env.GITHUB_TOKEN || core.getInput("github_token")
);
var exists = "false";

try {
const getRefResponse = await octokit.rest.git.getRef({
owner,
repo,
ref: `tags/${tag}`,
ref: `tags/${tag}`
});

if (getRefResponse.status === 200) {
Expand Down

0 comments on commit 8cf6863

Please sign in to comment.