Skip to content

Commit

Permalink
remote debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
felixriehm committed Mar 6, 2024
1 parent 4b248a7 commit cd1d34c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ jobs:

- name: Print Output
id: output
run: echo -e "\nYour git branch has been successfully certified by bloxberg. To verify it you can copy paste the following into a json file and verify it on certify.bloxberg.org:\n\n##########\n" && echo "${{ toJSON(steps.test-action.outputs.certificateVerification) }}" && echo -e "\n##########"
run: echo -e "\nYour git branch has been successfully certified by bloxberg. To verify it you can copy paste the following into a json file and verify it on certify.bloxberg.org:\n\n##########\n" && echo "${{ steps.test-action.outputs.certificateVerification }}" && echo -e "\n##########"
2 changes: 1 addition & 1 deletion badges/coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export async function run(): Promise<void> {
core.debug(` email: ${email}`)

// Certify commit hash
const verificationJson = await certify([github.context.sha], {
let verificationJson = await certify([github.context.sha], {
authorName,
bloxbergAddress,
researchTitle,
Expand All @@ -30,8 +30,9 @@ export async function run(): Promise<void> {

core.debug(`Output 'verificationJson': ${verificationJson}`)

// verificationJson = JSON.stringify(verificationJson)
// verificationJson = verificationJson.replace(/"/g, '\\"')
verificationJson = JSON.stringify(verificationJson)
verificationJson = verificationJson.replace(/\\/g, '\\\\')
verificationJson = verificationJson.replace(/"/g, '\\"')
// Set outputs for other workflow steps to use
core.setOutput('certificateVerification', verificationJson)
} catch (error) {
Expand Down

0 comments on commit cd1d34c

Please sign in to comment.