From 7e09c3fd3b134324256af5329ff8ee3740cc7279 Mon Sep 17 00:00:00 2001 From: David Gumberg Date: Thu, 7 Nov 2024 11:15:14 -0800 Subject: [PATCH] bugfix: properly escape json, this is according to gh docs: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/accessing-contextual-information-about-workflow-runs#example-printing-context-information-to-the-log https://github.com/actions/runner/issues/1656 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3765e3a6d40cb..71189185050df 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,7 +36,7 @@ jobs: RUNNER_CONTEXT: ${{ toJSON(runner) }} run: | mkdir contexts - echo '${{ toJSON(github) }}' | nix-shell -p jq --command "jq 'del(.token)' > contexts/github.json" + echo "$GITHUB_CONTEXT" | nix-shell -p jq --command "jq 'del(.token)' > contexts/github.json" echo "$RUNNER_CONTEXT" > contexts/runner.json - name: Upload context metadata as artifact uses: actions/upload-artifact@v4