mirror of
https://github.com/ditkrg/project-version-check.git
synced 2026-01-22 13:56:43 +00:00
Adds more logs
Signed-off-by: Shakar Bakr <5h4k4r.b4kr@gmail.com>
This commit is contained in:
parent
a70fc77ba4
commit
15592ece53
6
index.js
6
index.js
@ -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(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user