Update workspace/action.yaml

This commit is contained in:
Zakary Timson 2023-11-23 21:20:08 +00:00
parent fe26134042
commit 821ba2a40a

View File

@ -1,7 +1,7 @@
name: Load Workspace name: Load Workspace
description: Switch to job's persistant workspace description: Switch to job's persistant workspace
input: inputs:
key: key:
required: true required: true
type: string type: string
@ -12,8 +12,5 @@ runs:
- run: | - run: |
WORKSPACE=$(pwd) WORKSPACE=$(pwd)
cd .. cd ..
ln -fs "/workspace/$KEY" "$WORKSPACE" ln -fs "/workspace/${{ inputs.key }}" "$WORKSPACE"
echo "Linked: /workspace/$KEY -> $WORKSPACE" echo "Linked: /workspace/${{ inputs.key }} -> $WORKSPACE"
shell: bash
env:
KEY: ${{ inputs.key }}