mirror of
https://github.com/julia-actions/cache.git
synced 2026-02-12 09:26:53 +08:00
fixup! Check for differences in github context
This commit is contained in:
11
.github/workflows/ReusableWorkflow.yml
vendored
11
.github/workflows/ReusableWorkflow.yml
vendored
@@ -5,11 +5,13 @@ on:
|
|||||||
inputs: {}
|
inputs: {}
|
||||||
outputs:
|
outputs:
|
||||||
github-json:
|
github-json:
|
||||||
value: ${{ toJSON(github) }}
|
value: ${{ jobs.duplicate.outputs.github-json }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
duplicate:
|
duplicate:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
github-json: ${{ steps.export.outputs.github-json }}
|
||||||
steps:
|
steps:
|
||||||
- run: jq <"$GITHUB_EVENT_PATH"
|
- run: jq <"$GITHUB_EVENT_PATH"
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
@@ -18,3 +20,10 @@ jobs:
|
|||||||
version: "1"
|
version: "1"
|
||||||
- name: Save cache
|
- name: Save cache
|
||||||
uses: ./
|
uses: ./
|
||||||
|
- id: export
|
||||||
|
run: |
|
||||||
|
{
|
||||||
|
echo "github-json<<EOF"
|
||||||
|
echo "${{ toJSON(github) }}"
|
||||||
|
echo "EOF"
|
||||||
|
} | tee -a "$GITHUB_OUTPUT"
|
||||||
|
|||||||
Reference in New Issue
Block a user