mirror of
https://github.com/julia-actions/cache.git
synced 2026-02-15 02:26:53 +08:00
28 lines
670 B
YAML
28 lines
670 B
YAML
---
|
|
name: Reusable Workflow
|
|
on:
|
|
workflow_call:
|
|
inputs: {}
|
|
outputs:
|
|
context:
|
|
value: ${{ jobs.duplicate.outputs.context }}
|
|
|
|
jobs:
|
|
duplicate:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
context: ${{ steps.export.outputs.context }}
|
|
steps:
|
|
- 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 "context=$(jq -c <<<"$github_json" | base64)" | tee -a "$GITHUB_OUTPUT"
|
|
env:
|
|
github_json: ${{ toJSON(github) }}
|