actions/workspace/action.yaml

17 lines
349 B
YAML

name: Load Workspace
description: Switch to job's persistant workspace
input:
key:
required: true
type: string
runs:
using: composite
steps:
- run: |
WORKSPACE=$(pwd)
cd ..
ln -f "/workspace/${{ inputs.key }}" "$WORKSPACE"
echo "Linked: /workspace/${{ inputs.key }} -> $WORKSPACE"