Skip to content

Commit

Permalink
Merge pull request #35 from postmanlabs/feature/PAPI-2823-allow-relea…
Browse files Browse the repository at this point in the history
…se-notes-as-file

[PAPI-2823] feat: read release notes from file path
  • Loading branch information
alexander-rubia authored Aug 1, 2024
2 parents f8daec0 + 06bb3aa commit 9986ca0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions readFile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const core = require('@actions/core');
const { promises: fsAsync, fsSync } = require('fs');
const { promises: fsAsync, existsSync } = require('fs');
const yaml = require('yaml');

const readSchemaFile = async (path) => {
Expand All @@ -22,7 +22,7 @@ const readSchemaFile = async (path) => {
};

const readReleaseNotes = async (path) => {
if (fsSync.existsSync(path)) {
if (existsSync(path)) {
let content = await fsAsync.readFile(path, 'utf8');
return content.toString();
}
Expand Down

0 comments on commit 9986ca0

Please sign in to comment.