Update workspace/action.yaml
This commit is contained in:
parent
a5c47b92ad
commit
31a4de6f6d
@ -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"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user