Adds more logs

Signed-off-by: Shakar Bakr <5h4k4r.b4kr@gmail.com>
This commit is contained in:
Shakar Bakr 2023-10-02 10:11:02 +03:00
parent a70fc77ba4
commit 15592ece53
No known key found for this signature in database
GPG Key ID: DA55A26823AE3C28

View File

@ -77,7 +77,11 @@ async function commitChanges(file, filePath) {
// Get the current branch
const branch = process.env.GITHUB_REF.replace('refs/heads/', '');
console.log(`https://api.github.com/repos/${owner}/${repo}/branches/${branch}`,
`https://api.github.com/repos/${owner}/${repo}/git/blobs`,
`https://api.github.com/repos/${owner}/${repo}/git/trees`,
`https://api.github.com/repos/${owner}/${repo}/git/commits`,
`https://api.github.com/repos/${owner}/${repo}/git/refs/heads/${branch}`)
try {
// Get the current commit SHA for the branch
const branchResponse = await axios.get(