Skip to content

Commit

Permalink
Fix shell script bug (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
Abuelodelanada authored Mar 18, 2024
1 parent a78a752 commit 8e95f25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/charm-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ on:
default: false
required: false
description: |
Whether or not to also build the charm for arm64. Defaults to false.
Whether or not to also build the charm for arm64. Defaults to false.
secrets:
CHARMHUB_TOKEN:
required: true
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
cd $GITHUB_WORKSPACE/charm/${{ inputs.charm-path }}
# Get the charm name
charm_name=$((yq .name metadata.yaml 2>/dev/null || yq .name charmcraft.yaml) | tr - _)
if [[ "$charm_name = "" ]]; then echo "Error: can't extract the charm name." && exit 1; fi
if [[ $charm_name = "" ]]; then echo "Error: can't extract the charm name." && exit 1; fi
# For each library belonging to the charm, publish it
if [ -d lib/charms/$charm_name ]; then
for lib in $(find lib/charms/$charm_name -type f | sed 's|lib/||' | sed 's/.py//' | sed 's|/|.|g'); do
Expand Down

0 comments on commit 8e95f25

Please sign in to comment.