mirror of
https://github.com/fjogeleit/http-request-action.git
synced 2025-01-10 03:07:11 +00:00
40 lines
574 B
JavaScript
40 lines
574 B
JavaScript
|
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 }
|