fix: pipeline syntax
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
s3lph 2023-11-11 07:09:28 +01:00
parent f02435f2fa
commit 9a0145429d
Signed by: s3lph
GPG key ID: 0AA29A52FB33CFB5

View file

@ -17,8 +17,8 @@ steps:
# 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
export N=$(echo $${CI_STEP_NAME} | cut -d_ -f5)
cd "$(cat .woodpecker.yml | yq -r '.steps | keys[env.N]')"
export N=$(echo "$${CI_STEP_NAME}" | cut -d_ -f5)
cd "$(cat .woodpecker.yml | yq -r '.steps | keys[env.N|tonumber]')"
else
cd "$${CI_STEP_NAME}"
fi