diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f62fd26..241d40b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,10 +9,6 @@ on: jobs: deploy: runs-on: ubuntu-latest - permissions: - contents: write - repository-projects: write - packages: write steps: - uses: actions/checkout@v2 - uses: ./ diff --git a/action/utils/fileUtils.js b/action/utils/fileUtils.js index 6380ded..f5bbee9 100644 --- a/action/utils/fileUtils.js +++ b/action/utils/fileUtils.js @@ -19,7 +19,7 @@ async function sendFileToApi(filePath, apiUrl, ingestSecret) { const payload = { 'content': content, 'metadata': metadata }; try { - console.log(`Sending: $action/utils/fileUtils.js`); + console.log(`Sending: ${filePath}`); const response = await axios.post(apiUrl, payload, { headers: { 'Content-Type': 'application/json', 'X-Ingest-Secret': ingestSecret } }); return response; } catch (error) { @@ -29,12 +29,12 @@ async function sendFileToApi(filePath, apiUrl, ingestSecret) { } async function processFile(filePath, apiUrl, ingestSecret) { - console.log(`Sending file: $action/utils/fileUtils.js`); + console.log(`Sending file: ${filePath}`); const response = await sendFileToApi(filePath, apiUrl, ingestSecret); if (response.status === 200) { - console.log(`Successfully ingested: $action/utils/fileUtils.js`); + console.log(`Successfully ingested: ${filePath}`); } else { - console.log(`Failed to ingest $action/utils/fileUtils.js. Status code: ${response.status}`); + console.log(`Failed to ingest ${filePath}. Status code: ${response.status}`); } } @@ -66,7 +66,7 @@ async function ingestFiles(directoryPath, apiUrl, ingestSecret, excludeFiles = [ } else if (isValidFile(filePath) && !isExcluded(filePath, excludeFiles)) { await processFile(filePath, apiUrl, ingestSecret); } else { - console.log(`Skipping invalid, hidden, or excluded file: $action/utils/fileUtils.js`); + console.log(`Skipping invalid, hidden, or excluded file: ${filePath}`); } } } diff --git a/lib/index.js b/lib/index.js index ddabc6c..35406f7 100644 --- a/lib/index.js +++ b/lib/index.js @@ -28938,7 +28938,7 @@ async function sendFileToApi(filePath, apiUrl, ingestSecret) { const payload = { 'content': content, 'metadata': metadata }; try { - console.log(`Sending: $action/utils/fileUtils.js`); + console.log(`Sending: ${filePath}`); const response = await axios.post(apiUrl, payload, { headers: { 'Content-Type': 'application/json', 'X-Ingest-Secret': ingestSecret } }); return response; } catch (error) { @@ -28948,12 +28948,12 @@ async function sendFileToApi(filePath, apiUrl, ingestSecret) { } async function processFile(filePath, apiUrl, ingestSecret) { - console.log(`Sending file: $action/utils/fileUtils.js`); + console.log(`Sending file: ${filePath}`); const response = await sendFileToApi(filePath, apiUrl, ingestSecret); if (response.status === 200) { - console.log(`Successfully ingested: $action/utils/fileUtils.js`); + console.log(`Successfully ingested: ${filePath}`); } else { - console.log(`Failed to ingest $action/utils/fileUtils.js. Status code: ${response.status}`); + console.log(`Failed to ingest ${filePath}. Status code: ${response.status}`); } } @@ -28985,7 +28985,7 @@ async function ingestFiles(directoryPath, apiUrl, ingestSecret, excludeFiles = [ } else if (isValidFile(filePath) && !isExcluded(filePath, excludeFiles)) { await processFile(filePath, apiUrl, ingestSecret); } else { - console.log(`Skipping invalid, hidden, or excluded file: $action/utils/fileUtils.js`); + console.log(`Skipping invalid, hidden, or excluded file: ${filePath}`); } } } diff --git a/package.json b/package.json index b52b482..859e7e1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gh-action-repochat", - "version": "0.14.0", + "version": "0.15.0", "type": "commonjs", "description": "GitHub Action to run repochat", "main": "index.js",