auths
objectreturn
or this.key = 'value'
, pass input data to your code viaparams
, and maintain state across executions with$checkpoint.async
(event, steps, params, auths) => {
}
const axios = require('axios');
const result = await axios({
url: `https://api.github.com/repos/${params.owner}/${params.repo}/pages/builds`,
method: 'POST',
headers: {
Authorization: `Bearer ${auths.github.oauth_access_token}`,
},
});
return result.data;