1
0
Fork 0
mirror of https://github.com/fjogeleit/http-request-action.git synced 2025-01-10 03:07:11 +00:00
http-request-action/src/githubActions.js

40 lines
574 B
JavaScript
Raw Normal View History

const core = require("@actions/core");
class GithubActions {
debug(message) {
core.debug(message)
}
warning(message) {
core.warning(message)
}
setOutput(name, output) {
core.setOutput(name, output)
}
setFailed(message) {
core.setFailed(message)
}
}
class LogActions {
debug(message) {
console.info(message)
}
warning(message) {
console.warn(message)
}
setOutput(name, output) {
console.log(name, output)
}
setFailed(message) {
console.error(message)
}
}
module.exports = { GithubActions, LogActions }