Skip to content

Commit

Permalink
[PAPI-2823] feat: read release notes from file path
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-rubia committed Aug 1, 2024
1 parent 4089e71 commit 4b74dab
Showing 1 changed file with 2 additions and 2 deletions.
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 4b74dab

Please sign in to comment.