Skip to content

Commit

Permalink
Merge pull request #17 from canonical/fix/rock-update-attempt
Browse files Browse the repository at this point in the history
fix syntax error in rock-update
  • Loading branch information
lucabello authored Aug 1, 2023
2 parents 1e9edb6 + 98d9273 commit 6334fa6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/rock-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ jobs:
# The caller must provide $application_src and $rockcraft_yaml
# $application_src: The root folder of the cloned upstream project
# $rockcraft_yaml: Path of the rockcraft.yaml to update
if [[ -z "$application_src" || -z "$rockcraft_yaml"]]; then
echo "Remember to set the variables for application_src and rockcraft_yaml!"
exit 1;
fi
#
## Node dependency
node_version=$(jq -r '.devDependencies."@types/node"' "$application_src"/web/ui/package.json | tr -d '^')
yq -i 'del(.parts.prometheus.build-snaps.[] | select(. == "node/*"))' "$rockcraft_yaml"
Expand Down

0 comments on commit 6334fa6

Please sign in to comment.