Merge pull request '[deploy-opentofu]' (#218) from fenix-admin into main

Reviewed-on: fenix-gitea-admin/iac-opentofu-private#218
This commit is contained in:
2025-09-07 21:03:56 +00:00

View File

@ -136,12 +136,14 @@ jobs:
name=$(echo "$secret" | jq -r '.name')
type=$(echo "$secret" | jq -r '.type')
output=$(echo "$secret" | jq -r '.output')
echo "$name $type $output"
item_id=$(bw get item "$name" | jq -r '.id')
echo "$item_id"
if [ "$type" == "attachment" ]; then
echo "attachment get"
bw get attachment "$output" --itemid "$item_id" --output "$output"
elif [ "$type" == "note" ]; then
echo "note get"
bw get item "$name" | jq -r '.notes' > "$output"
fi
done