mirror of
https://github.com/julia-actions/cache.git
synced 2026-02-12 09:26:53 +08:00
33 lines
788 B
YAML
33 lines
788 B
YAML
---
|
|
name: Reusable Workflow
|
|
on:
|
|
workflow_call:
|
|
inputs: {}
|
|
outputs:
|
|
github-json:
|
|
value: ${{ jobs.duplicate.outputs.github-json }}
|
|
|
|
jobs:
|
|
duplicate:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
github-json: ${{ steps.export.outputs.github-json }}
|
|
steps:
|
|
- run: jq <"$GITHUB_EVENT_PATH"
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
- uses: julia-actions/setup-julia@v2
|
|
with:
|
|
version: "1"
|
|
- name: Save cache
|
|
uses: ./
|
|
- name: Export
|
|
id: export
|
|
run: |
|
|
{
|
|
echo "github-json<<EOF"
|
|
jq <<<"$github_context"
|
|
echo "EOF"
|
|
} | tee -a "$GITHUB_OUTPUT"
|
|
env:
|
|
github_context: ${{ toJSON(github) }}
|