feat: log parsed command data in json logger (#103)

* feat: log parsed command data in json logger

* add logging info to other commands as well
This commit is contained in:
ChristopherHX
2025-05-17 16:14:53 +02:00
committed by GitHub
parent 7c0b21a846
commit bb140f1a38
8 changed files with 91 additions and 37 deletions

View File

@@ -0,0 +1,27 @@
name: Step Summary Example
on: [push]
jobs:
create_summary:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
# GITHUB_STEP_SUMMARY test
- name: Create Step Summary
uses: actions/github-script@v7
with:
script: |
const summary = `
## Workflow Summary
- **Repository**: ${context.repo.owner}/${context.repo.repo}
- **Branch**: ${context.ref}
- **Commit SHA**: ${context.sha}
- **Event**: ${context.eventName}
`;
console.log('Summary:', summary);
await core.summary.addRaw(summary);
await core.summary.write();
github-token: none