chore(deps): bump @types/node from 20.17.3 to 20.17.6 #2940
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Smoke Test Context | |
on: # rebuild any PRs and main branch changes | |
pull_request: | |
push: | |
issues: | |
issue_comment: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
showContext: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get Environment | |
id: get-env | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
return process.env; | |
- name: View context attributes | |
uses: actions/github-script@v7 | |
with: | |
result-encoding: string | |
script: | | |
console.log('Env %o', process.env); | |
console.log('context: %o', context); | |
return process.env.GITHUB_EVENT_PATH; | |
- name: Read Event File | |
id: read-event | |
uses: streetsidesoftware/actions/public/read-file@v1 | |
with: | |
path: ${{ fromJSON(steps.get-env.outputs.result).GITHUB_EVENT_PATH }} | |
- name: View context in summary | |
uses: streetsidesoftware/actions/public/summary@v1 | |
with: | |
text: | | |
# Context Summary | |
Event Name: `${{ github.event_name }}` | |
After: `${{ github.event.after }}` | |
Before: `${{ github.event.before }}` | |
PR Base SHA: `${{ github.event.pull_request.base.sha }}` | |
Commits Ids: | |
``` | |
${{ toJSON(github.event.commits.*.id || 'undefined') }} | |
``` | |
Env: | |
`````json | |
${{ toJson(fromJson(steps.get-env.outputs.result)) }} | |
````` | |
GitHub Context: | |
`````json | |
${{ toJson(github) }} | |
````` | |
Event File: | |
`````json | |
${{ toJson(fromJSON(steps.read-event.outputs.result)) }} | |
````` |