diff --git a/.github/workflows/publish_charm.yaml b/.github/workflows/publish_charm.yaml index f8c60218b..36835d504 100644 --- a/.github/workflows/publish_charm.yaml +++ b/.github/workflows/publish_charm.yaml @@ -304,10 +304,10 @@ jobs: resource_name=$(echo $image | awk -F '/' '{print $NF}' | cut -d ':' -f 1)-image fi - if [[ " ${resources[@]} " =~ " $resource " ]]; then + if [[ " ${resources[@]} " =~ " $resource_name " ]]; then docker pull $image image_id=$(docker images $image --format "{{.ID}}") - charmcraft upload-resource $charm $resource --image=$image_id --verbosity=brief + charmcraft upload-resource $charm $resource_name --image=$image_id --verbosity=brief fi done