Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
renanvy committed Aug 4, 2023
1 parent adb06e8 commit 912b864
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
10 changes: 4 additions & 6 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9490,7 +9490,6 @@ exports["default"] = _default;
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {

const core = __nccwpck_require__(6442)
const fs = __nccwpck_require__(7147)
const Base64 = (__nccwpck_require__(835)/* .Base64 */ .D)
const { loadFile, searchFilesXml } = __nccwpck_require__(9078)
const { parserXmlToObject } = __nccwpck_require__(1253)
Expand Down Expand Up @@ -9536,15 +9535,14 @@ function runStepsEvaluator(pathList) {
evaluations: [{grade: '1', description: 'GeniusLogic'}],
})

const outputBase64 = Buffer.from(json, 'base64').toString('base64')

console.log('teste1', outputBase64)

const outputBase64_2 = parserJSONtoBase64(json)

console.log('teste2', outputBase64_2)

core.setOutput('result', 'eyJnaXRodWJfdXNlcm5hbWUiOiAia2F0aWFjaWgiLCAiZ2l0aHViX3JlcG9zaXRvcnlfbmFtZSI6ICJiZXRyeWJlL3NkLTAwMC1wcm9qZXRvLWFuZHJvaWQtdHJ5YmUtZ2VuaXVzLTIwMjMtMDctMzEtMDktMjMtMDAiLCBldmFsdWF0aW9uczogW3siZ3JhZGUiOiAiMSIsICJkZXNjcmlwdGlvbiI6ICJHZW5pdXNMb2dpYyJ9XX0=')
const a = core.setOutput('result', 'eyJnaXRodWJfdXNlcm5hbWUiOiAia2F0aWFjaWgiLCAiZ2l0aHViX3JlcG9zaXRvcnlfbmFtZSI6ICJiZXRyeWJlL3NkLTAwMC1wcm9qZXRvLWFuZHJvaWQtdHJ5YmUtZ2VuaXVzLTIwMjMtMDctMzEtMDktMjMtMDAiLCBldmFsdWF0aW9uczogW3siZ3JhZGUiOiAiMSIsICJkZXNjcmlwdGlvbiI6ICJHZW5pdXNMb2dpYyJ9XX0=')
console.log('a', a)

core.setOutput('result', 'test')
} catch(error) {
core.setFailed(`${error}`)
}
Expand Down
10 changes: 4 additions & 6 deletions src/controller/evaluator.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const core = require('@actions/core')
const fs = require('fs')
const Base64 = require('base64-string').Base64
const { loadFile, searchFilesXml } = require('./fileManager')
const { parserXmlToObject } = require('./xmlParser')
Expand Down Expand Up @@ -45,15 +44,14 @@ function runStepsEvaluator(pathList) {
evaluations: [{grade: '1', description: 'GeniusLogic'}],
})

const outputBase64 = Buffer.from(json, 'base64').toString('base64')

console.log('teste1', outputBase64)

const outputBase64_2 = parserJSONtoBase64(json)

console.log('teste2', outputBase64_2)

core.setOutput('result', 'eyJnaXRodWJfdXNlcm5hbWUiOiAia2F0aWFjaWgiLCAiZ2l0aHViX3JlcG9zaXRvcnlfbmFtZSI6ICJiZXRyeWJlL3NkLTAwMC1wcm9qZXRvLWFuZHJvaWQtdHJ5YmUtZ2VuaXVzLTIwMjMtMDctMzEtMDktMjMtMDAiLCBldmFsdWF0aW9uczogW3siZ3JhZGUiOiAiMSIsICJkZXNjcmlwdGlvbiI6ICJHZW5pdXNMb2dpYyJ9XX0=')
const a = core.setOutput('result', 'eyJnaXRodWJfdXNlcm5hbWUiOiAia2F0aWFjaWgiLCAiZ2l0aHViX3JlcG9zaXRvcnlfbmFtZSI6ICJiZXRyeWJlL3NkLTAwMC1wcm9qZXRvLWFuZHJvaWQtdHJ5YmUtZ2VuaXVzLTIwMjMtMDctMzEtMDktMjMtMDAiLCBldmFsdWF0aW9uczogW3siZ3JhZGUiOiAiMSIsICJkZXNjcmlwdGlvbiI6ICJHZW5pdXNMb2dpYyJ9XX0=')
console.log('a', a)

core.setOutput('result', 'test')
} catch(error) {
core.setFailed(`${error}`)
}
Expand Down

0 comments on commit 912b864

Please sign in to comment.