Update workspace/action.yaml

This commit is contained in:
Zakary Timson 2023-11-23 21:13:50 +00:00
parent a5c47b92ad
commit 31a4de6f6d

View File

@ -3,9 +3,8 @@ description: Switch to job's persistant workspace
input: input:
key: key:
type: string
required: true required: true
description: Workspace ID type: string
runs: runs:
using: composite using: composite
@ -13,7 +12,5 @@ runs:
- run: | - run: |
WORKSPACE=$(pwd) WORKSPACE=$(pwd)
cd .. cd ..
rm -rf "$WORKSPACE" ln -f "/workspace/${{ inputs.key }}" "$WORKSPACE"
mkdir -p "/workspace/${{inputs.key}}" echo "Linked: /workspace/${{ inputs.key }} -> $WORKSPACE"
ln -s "/workspace/${{inputs.key}}" "$WORKSPACE"
echo "Linked: /workspace/${{inputs.key}} -> $WORKSPACE"