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 2c74801 commit adb06e8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 8 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9533,12 +9533,18 @@ function runStepsEvaluator(pathList) {
const json = JSON.stringify({
github_username: getGithubUsernameData(),
github_repository_name: getGithubRepositoryNameData(),
evaluations: [{'grade': '1', 'description': 'GeniusLogic'}],
evaluations: [{grade: '1', description: 'GeniusLogic'}],
})

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

core.setOutput('result', outputBase64)
console.log('teste1', outputBase64)

const outputBase64_2 = parserJSONtoBase64(json)

console.log('teste2', outputBase64_2)

core.setOutput('result', 'eyJnaXRodWJfdXNlcm5hbWUiOiAia2F0aWFjaWgiLCAiZ2l0aHViX3JlcG9zaXRvcnlfbmFtZSI6ICJiZXRyeWJlL3NkLTAwMC1wcm9qZXRvLWFuZHJvaWQtdHJ5YmUtZ2VuaXVzLTIwMjMtMDctMzEtMDktMjMtMDAiLCBldmFsdWF0aW9uczogW3siZ3JhZGUiOiAiMSIsICJkZXNjcmlwdGlvbiI6ICJHZW5pdXNMb2dpYyJ9XX0=')
} catch(error) {
core.setFailed(`${error}`)
}
Expand Down
10 changes: 8 additions & 2 deletions src/controller/evaluator.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,18 @@ function runStepsEvaluator(pathList) {
const json = JSON.stringify({
github_username: getGithubUsernameData(),
github_repository_name: getGithubRepositoryNameData(),
evaluations: [{'grade': '1', 'description': 'GeniusLogic'}],
evaluations: [{grade: '1', description: 'GeniusLogic'}],
})

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

core.setOutput('result', outputBase64)
console.log('teste1', outputBase64)

const outputBase64_2 = parserJSONtoBase64(json)

console.log('teste2', outputBase64_2)

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

0 comments on commit adb06e8

Please sign in to comment.