1
0
Fork 0
mirror of https://github.com/fjogeleit/http-request-action.git synced 2025-01-22 06:49:28 +00:00
http-request-action/src/githubActions.js
Frank Jogeleit 2d6a2f17dc mask response as secret if configured
Signed-off-by: Frank Jogeleit <frank.jogeleit@lovoo.com>
2023-12-17 15:41:37 +01:00

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 }