From c2374f3576bdeb88eb4d11ed9b39b85fcce606ba Mon Sep 17 00:00:00 2001 From: Zach Goncalves Date: Sat, 26 Aug 2023 17:26:26 -0400 Subject: [PATCH] minor update --- index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 1ed919d..57216c3 100644 --- a/index.js +++ b/index.js @@ -4,14 +4,14 @@ const github = require('@actions/github'); async function run() { try { //Get input - const tag = process.env.TAG || process.env.INPUT_TAG || '' - const repoInput = core.getInput('repo') || process.env.GITHUB_REPOSITORY + const tag = process.env.TAG || process.env.INPUT_TAG || ''; + const repoInput = core.getInput('repo') || process.env.GITHUB_REPOSITORY; console.log(`Searching for tag: ${tag} in ${repoInput}`); // Get owner and repo from context of payload that triggered the action - const [ owner, ...repository ] = repoInput.split('/') - const repo = repository.join('/') + const [ owner, ...repository ] = repoInput.split('/'); + const repo = repository.join('/'); const octokit = github.getOctokit(process.env.GITHUB_TOKEN || core.getInput('github_token')); var exists = 'false';