Skip to content

Commit

Permalink
chore: create a smoke test to view context
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed Feb 27, 2024
1 parent 0ab9d54 commit 92d1157
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Smoke Test Context
on: # rebuild any PRs and main branch changes
pull_request:
push:
workflow_dispatch:

permissions:
contents: read

jobs:
showContext:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: View context in summary
uses: streetsidesoftware/actions/public/summary@v1
with:
text: |
Context: ${{ toJson(github) }}
- name: View context attributes
uses: actions/github-script@v7
with:
script: |
console.log(context);
console.log('%o', context);
console.log(JSON.stringify(context, null, 2));

0 comments on commit 92d1157

Please sign in to comment.