From 8e9068691eb2ce54088a6869955a5e8a1ac7b675 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Sun, 29 Jun 2025 13:02:05 -0400 Subject: [PATCH] feat(workflows): add github env debug --- .github/workflows/__call-github-env.yml | 28 +++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/__call-github-env.yml diff --git a/.github/workflows/__call-github-env.yml b/.github/workflows/__call-github-env.yml new file mode 100644 index 00000000..9a239a48 --- /dev/null +++ b/.github/workflows/__call-github-env.yml @@ -0,0 +1,28 @@ +--- +# This workflow can be called by other repos if we want to debug the GitHub context. This is useful for popular +# projects that get many PRs so we can see how the context varies between forks and internal branches. + +name: GitHub Env Debug +permissions: + contents: read + +on: + pull_request: + branches: + - master + types: + - opened + - synchronize + - reopened + workflow_call: + +jobs: + github_env: + name: GitHub Env Debug + runs-on: ubuntu-latest + steps: + - name: Dump GitHub context + env: + GITHUB_CONTEXT: ${{ toJson(github) }} + shell: bash + run: echo "$GITHUB_CONTEXT"