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:
|
|
|
|
type: string
|
|
|
|
required: true
|
|
|
|
description: Workspace ID
|
|
|
|
|
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 ..
|
|
|
|
rm -rf "$WORKSPACE"
|
|
|
|
mkdir -p "/workspace/${{inputs.key}}"
|
|
|
|
ln -s "/workspace/${{inputs.key}}" "$WORKSPACE"
|