mirror of
https://github.com/aljazceru/satshkd-vercel.git
synced 2025-12-16 20:54:23 +01:00
21 lines
564 B
JavaScript
21 lines
564 B
JavaScript
const core = require('@actions/core');
|
|
const poll = require('./btcpoll');
|
|
const axios = require('axios');
|
|
|
|
// modify this to ping url, get data and update, commit and push file to github repo
|
|
try {
|
|
// const res = poll.main()
|
|
console.log("main response: this is a test file trial ");
|
|
|
|
const res = axios.get('https://google.com').then(response => {
|
|
return response;
|
|
}).catch(err => {
|
|
console.log(err);
|
|
});
|
|
|
|
console.log(" this is the res: " , res);
|
|
core.setOutput('✅ Success');
|
|
|
|
} catch (error) {
|
|
core.setFailed(`🛑 ${error.message}`);
|
|
} |