Use upload for passing context

This commit is contained in:
Curtis Vogt
2025-01-24 08:17:26 -06:00
parent 0217e24a50
commit cc7375cd98
2 changed files with 14 additions and 10 deletions

View File

@@ -22,18 +22,23 @@ jobs:
needs: duplicate
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: reusable-context
- run: |
a="$github_json"
b="$(cat github.json)"
echo "::group::Raw A"
jq <<<"$a"
echo "::endgroup::"
echo "::group::Raw B"
base64 -d <<<"$b" | jq
jq <<<"$b"
echo "::endgroup::"
echo "::group::Diff"
diff <(echo "$a") <(echo "$b")
echo "::endgroup::"
env:
a: ${{ toJSON(github) }}
b: ${{ needs.trigger.outputs.context }}
github_json: ${{ toJSON(github) }}