mirror of
https://github.com/fjogeleit/http-request-action.git
synced 2025-01-22 06:49:28 +00:00
2d6a2f17dc
Signed-off-by: Frank Jogeleit <frank.jogeleit@lovoo.com>
53 lines
735 B
JavaScript
53 lines
735 B
JavaScript
'use strict'
|
|
|
|
const core = require("@actions/core");
|
|
|
|
class GithubActions {
|
|
debug(message) {
|
|
core.debug(message)
|
|
}
|
|
|
|
info(message) {
|
|
core.info(message)
|
|
}
|
|
|
|
warning(message) {
|
|
core.warning(message)
|
|
}
|
|
|
|
setOutput(name, output) {
|
|
core.setOutput(name, output)
|
|
}
|
|
|
|
setSecret(value) {
|
|
core.setSecret(value)
|
|
}
|
|
|
|
setFailed(message) {
|
|
core.setFailed(message)
|
|
}
|
|
}
|
|
|
|
class LogActions {
|
|
info(message) {
|
|
console.info(message)
|
|
}
|
|
|
|
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 }
|