Skip to content

Commit ffef395

Browse files
feat(workflows): add github env debug (#474)
1 parent 13b4434 commit ffef395

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
# This workflow can be called by other repos if we want to debug the GitHub context. This is useful for popular
3+
# projects that get many PRs so we can see how the context varies between forks and internal branches.
4+
5+
name: GitHub Env Debug
6+
permissions:
7+
contents: read
8+
9+
on:
10+
pull_request:
11+
branches:
12+
- master
13+
types:
14+
- opened
15+
- synchronize
16+
- reopened
17+
workflow_call:
18+
19+
jobs:
20+
github_env:
21+
name: GitHub Env Debug
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Dump GitHub context
25+
env:
26+
GITHUB_CONTEXT: ${{ toJson(github) }}
27+
shell: bash
28+
run: echo "$GITHUB_CONTEXT"

0 commit comments

Comments
 (0)