mirror of
https://github.com/docker/build-push-action.git
synced 2025-05-06 21:49:33 +02:00
log the full request URL (#32)
This commit is contained in:
parent
3b6e3e7be4
commit
7d2e9e7288
3 changed files with 8 additions and 5 deletions
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
@ -111,13 +111,16 @@ async function postWithRetryToBlacksmithAPI(url: string, requestBody: unknown, r
|
|||
|
||||
for (let attempt = 1; attempt <= maxRetries; attempt++) {
|
||||
try {
|
||||
core.debug(`Making POST request to ${url}`);
|
||||
core.debug(`Request headers: Authorization: Bearer ${process.env.BLACKSMITH_STICKYDISK_TOKEN}, X-Github-Repo-Name: ${process.env.GITHUB_REPO_NAME || ''}`);
|
||||
|
||||
return await axios.post(`${apiUrl}${url}`, requestBody, {
|
||||
const fullUrl = `${apiUrl}${url}`;
|
||||
core.debug(`Making request to full URL: ${fullUrl}`);
|
||||
|
||||
return await axios.post(fullUrl, requestBody, {
|
||||
headers: {
|
||||
Authorization: `Bearer ${process.env.BLACKSMITH_STICKYDISK_TOKEN}`,
|
||||
'X-Github-Repo-Name': process.env.GITHUB_REPO_NAME || ''
|
||||
'X-Github-Repo-Name': process.env.GITHUB_REPO_NAME || '',
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
});
|
||||
} catch (error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue