Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ArpitShukla12 committed Sep 5, 2024
1 parent 5a8ae85 commit 9e50d35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18027,7 +18027,7 @@ async function getFileContents(octokit, context, filePath) {
});

if (!res) return null

console.log("content : ", res.data.content)
const buff = Buffer.from(res.data.content, "base64");

return buff.toString("utf8");
Expand Down Expand Up @@ -18079,7 +18079,7 @@ async function getChangedFiles(octokit, context) {
async function getAssetName({octokit, context, fileName, filePath}) {
var regExp = /{{\s*config\s*\(\s*(?:[^,]*,)*\s*alias\s*=\s*['"]([^'"]+)['"](?:\s*,[^,]*)*\s*\)\s*}}/im;
var fileContents = await getFileContents(octokit, context, filePath);

console.log("file content :", fileContents)
if (fileContents) {
var matches = regExp.exec(fileContents);

Expand Down
4 changes: 2 additions & 2 deletions src/utils/file-system.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export async function getFileContents(octokit, context, filePath) {
});

if (!res) return null

console.log("content : ", res.data.content)
const buff = Buffer.from(res.data.content, "base64");

return buff.toString("utf8");
Expand Down Expand Up @@ -69,7 +69,7 @@ export async function getChangedFiles(octokit, context) {
export async function getAssetName({octokit, context, fileName, filePath}) {
var regExp = /{{\s*config\s*\(\s*(?:[^,]*,)*\s*alias\s*=\s*['"]([^'"]+)['"](?:\s*,[^,]*)*\s*\)\s*}}/im;
var fileContents = await getFileContents(octokit, context, filePath);

console.log("file content :", fileContents)
if (fileContents) {
var matches = regExp.exec(fileContents);

Expand Down

0 comments on commit 9e50d35

Please sign in to comment.