Check for differences in github context

This commit is contained in:
Curtis Vogt
2025-01-23 15:30:05 -06:00
parent 3f52c6b71c
commit 096c710202
2 changed files with 17 additions and 0 deletions

View File

@@ -18,3 +18,18 @@ jobs:
version: "1"
- name: Save cache
uses: ./
compare:
needs: duplicate
runs-on: ubuntu-latest
steps:
- run: |
echo "---"
jq <<<"$a"
echo "---"
jq <<<"$b"
echo "---"
diff <(echo "$a") <(echo "$b")
env:
a: ${{ toJSON(github) }}
b: ${{ needs.duplicate.outputs.github-json }}

View File

@@ -3,6 +3,8 @@ name: Reusable Workflow
on:
workflow_call:
inputs: {}
outputs:
json: ${{ toJSON(github) }}
jobs:
duplicate: