Skip to content

Commit

Permalink
fix: args typo
Browse files Browse the repository at this point in the history
  • Loading branch information
astagi committed Jan 10, 2025
1 parent 01165a1 commit 0572f46
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,7 +5,7 @@ const simpleGit = require('simple-git');

const renderTemplate = (template, args={}) => {
let finalRender = template;
for (const [key, value] of myMap.entries()) {
for (const [key, value] of args.entries()) {
finalRender = finalRender.replace(`{{${key}}}`, value);
}
return finalRender;
Expand All @@ -16,7 +16,7 @@ const main = async () => {
const tags = (await currentRepoGit.tags({'--sort' : 'taggerdate'})).all

const version = tags.pop()
const repoName = github.context.payload.repository.full_name
const repoName = 'mio'//github.context.payload.repository.full_name
const changelogUrl = `https://github.com/${repoName}/releases/tag/${version}`

const slackToken = core.getInput('slack_token')
Expand All @@ -40,7 +40,7 @@ const main = async () => {
},
],
})

console.log(payload)
const requestOptions = {
method: 'POST',
port: 443,
Expand Down

0 comments on commit 0572f46

Please sign in to comment.