Skip to content

Commit

Permalink
[#1] fix no needs method
Browse files Browse the repository at this point in the history
  • Loading branch information
feelform committed Nov 3, 2021
1 parent 2e62c36 commit 5b2ec14
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion .github/actions/markdown-template-engine-action/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const run = async () => {
const templateMarkdownFile = core.getInput('template_markdown_file')
const template = await fs.readFile(templateMarkdownFile, 'utf8')

const version = (await MarkdownContents.makeMarkdownContentsFromPinpointLatestReleaseNotes()).getVersionWithV()
const version = ReleaseNotes.makeOfMarkdownContents(template).getVersionWithV()
const disableBranch = core.getInput('disable_branch')
if (version && disableBranch.length == 0) {
await git.branch([version])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ class MarkdownContents {
return new MarkdownContents(data)
}

static async makeMarkdownContentsFromPinpointLatestReleaseNotes() {
return await ReleaseNotes.makeLatestReleaseNotes(GithubRelease)
}

static async makeMarkdownContentsFromPinpointReadme(filename) {
if (!readmeGithubBody) {
const { data } = await axios.get(`https://raw.githubusercontent.com/${readmeGithubPath}/master/README.md`, { responseType: 'text' })
Expand Down

0 comments on commit 5b2ec14

Please sign in to comment.