2023-11-23 15:39:16 -05:00
|
|
|
name: Load Workspace
|
|
|
|
description: Switch to job's persistant workspace
|
2023-11-23 15:30:34 -05:00
|
|
|
|
2023-11-23 15:49:33 -05:00
|
|
|
input:
|
|
|
|
key:
|
|
|
|
required: true
|
2023-11-23 16:13:50 -05:00
|
|
|
type: string
|
2023-11-23 15:49:33 -05:00
|
|
|
|
2023-11-23 15:30:34 -05:00
|
|
|
runs:
|
2023-11-23 15:39:16 -05:00
|
|
|
using: composite
|
2023-11-23 15:30:34 -05:00
|
|
|
steps:
|
|
|
|
- run: |
|
2023-11-23 15:49:33 -05:00
|
|
|
WORKSPACE=$(pwd)
|
|
|
|
cd ..
|
2023-11-23 16:19:19 -05:00
|
|
|
ln -fs "/workspace/$KEY" "$WORKSPACE"
|
|
|
|
echo "Linked: /workspace/$KEY -> $WORKSPACE"
|
|
|
|
shell: bash
|
|
|
|
env:
|
|
|
|
KEY: ${{ inputs.key }}
|