mirror of
https://github.com/julia-actions/cache.git
synced 2026-02-12 01:16:54 +08:00
fixup! Check for differences in github context
This commit is contained in:
12
.github/workflows/ReusableWorkflow.yml
vendored
12
.github/workflows/ReusableWorkflow.yml
vendored
@@ -4,13 +4,12 @@ on:
|
|||||||
workflow_call:
|
workflow_call:
|
||||||
inputs: {}
|
inputs: {}
|
||||||
outputs:
|
outputs:
|
||||||
github-json: ${{ jobs.duplicate.outputs.github-json }}
|
github-json:
|
||||||
|
value: ${{ toJSON(github) }}
|
||||||
|
|
||||||
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
|
||||||
@@ -19,10 +18,3 @@ 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