Skip to content

Commit

Permalink
Merge pull request #25 from kunai-consulting/linear-soc2
Browse files Browse the repository at this point in the history
fix: action gets correct file path
  • Loading branch information
thejackshelton-kunaico authored Aug 22, 2024
2 parents 3fee568 + 0f86b88 commit 8e72d83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,12 @@ function readChangesetFiles() {
if (fs.existsSync(changesetDir)) {
const files = fs.readdirSync(changesetDir);

if (files.length === 0) {
console.log("No files found in .changeset directory");
return;
}

for (const file of files) {
if (path.extname(file) === ".md") {
try {
const content = fs.readFileSync(
path.join(changesetDir, file),
"utf-8"
);
prDescription += content;
} catch (error) {
console.error(`Error reading file ${file}: ${error.message}`);
}
const content = fs.readFileSync(path.join(changesetDir, file), "utf-8");
prDescription += content;
}
}
} else {
console.log(".changeset directory does not exist");
}
}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ jobs:
env:
LINEAR_API_KEY: ${{ secrets.LINEAR_API_KEY }}
PR_TITLE: "Release QDS v${{ env.NEW_VERSION }}"
run: pnpm vite-node .github/scripts/create-linear-issue.ts
run: pnpm vite-node .github/scripts/update-linear.ts

0 comments on commit 8e72d83

Please sign in to comment.