remove some core info lines
parent
dbdd453773
commit
d13406287c
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -34,9 +34,6 @@ async function getBlacksmithAPIUrl(): Promise<AxiosInstance> {
|
||||||
let apiUrl = process.env.PETNAME?.includes('staging')
|
let apiUrl = process.env.PETNAME?.includes('staging')
|
||||||
? 'https://stagingapi.blacksmith.sh'
|
? 'https://stagingapi.blacksmith.sh'
|
||||||
: 'https://api.blacksmith.sh'
|
: 'https://api.blacksmith.sh'
|
||||||
core.info(`Using API URL: ${apiUrl}`);
|
|
||||||
core.info(`Using token: ${process.env.BLACKSMITH_STICKYDISK_TOKEN}`);
|
|
||||||
core.info(`Using repo name: ${process.env.GITHUB_REPO_NAME}`);
|
|
||||||
return axios.create({
|
return axios.create({
|
||||||
baseURL: apiUrl,
|
baseURL: apiUrl,
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -97,7 +94,6 @@ async function postWithRetryToBlacksmithAPI(client: AxiosInstance, url: string,
|
||||||
const maxRetries = 5;
|
const maxRetries = 5;
|
||||||
const retryDelay = 100;
|
const retryDelay = 100;
|
||||||
|
|
||||||
core.info(`Request options: ${JSON.stringify(requestOptions)}`);
|
|
||||||
for (let attempt = 1; attempt <= maxRetries; attempt++) {
|
for (let attempt = 1; attempt <= maxRetries; attempt++) {
|
||||||
try {
|
try {
|
||||||
return await client.post(url, JSON.stringify(requestOptions), {
|
return await client.post(url, JSON.stringify(requestOptions), {
|
||||||
|
|
Loading…
Reference in New Issue