Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
zachgoncalves committed Aug 26, 2023
1 parent 93decfb commit c2374f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit c2374f3

Please sign in to comment.