fix: pipeline syntax
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
f02435f2fa
commit
9a0145429d
1 changed files with 2 additions and 2 deletions
|
@ -17,8 +17,8 @@ steps:
|
||||||
# woodpecker for some reason sets CI_STEP_NAME to something autogenerated like wp_01h7nk44xbs0kgqabpatbq2qkv_0_step_0
|
# woodpecker for some reason sets CI_STEP_NAME to something autogenerated like wp_01h7nk44xbs0kgqabpatbq2qkv_0_step_0
|
||||||
- |
|
- |
|
||||||
if echo "$${CI_STEP_NAME}" | grep -Eq '^wp_'; then
|
if echo "$${CI_STEP_NAME}" | grep -Eq '^wp_'; then
|
||||||
export N=$(echo $${CI_STEP_NAME} | cut -d_ -f5)
|
export N=$(echo "$${CI_STEP_NAME}" | cut -d_ -f5)
|
||||||
cd "$(cat .woodpecker.yml | yq -r '.steps | keys[env.N]')"
|
cd "$(cat .woodpecker.yml | yq -r '.steps | keys[env.N|tonumber]')"
|
||||||
else
|
else
|
||||||
cd "$${CI_STEP_NAME}"
|
cd "$${CI_STEP_NAME}"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue