Skip to content

Commit

Permalink
Fix const assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisHsu committed Feb 29, 2024
1 parent 298bd62 commit 0421054
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 @@ -5,17 +5,17 @@ const fs = require('fs')

try {
// Get octokit
const Octokit = Github.getOctokit(Core.getInput('token'));
let Octokit = Github.getOctokit(Core.getInput('token'));
// Read & parse release note
let note_content = fs.readFileSync(Path.resolve(Core.getInput('note')), {encoding: 'utf8'});
const [tag_str, tag_name] = note_content.match(/^\`(.*)\`\n/);
let [tag_str, tag_name] = note_content.match(/^\`(.*)\`\n/);
note_content = note_content.substring(tag_str.length);
// Get tags
let tags = fs.readdirSync(Path.resolve(".git", "refs", "tags"))
console.log(tags)

// Get assets
const asset_paths = Core.getInput('assets').split("\n").map(s => s.trim());
let asset_paths = Core.getInput('assets').split("\n").map(s => s.trim());
console.log(`Assets: ${asset_paths}`);
} catch (error) {
Core.setFailed(error.message);
Expand Down

0 comments on commit 0421054

Please sign in to comment.