Skip to content

Commit

Permalink
Merge pull request #19 from canonical/fix/rock-update-eval
Browse files Browse the repository at this point in the history
fix node version injection
  • Loading branch information
lucabello authored Aug 1, 2023
2 parents 6334fa6 + 5ac9150 commit aa11e8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/rock-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ jobs:
#
## Node dependency
node_version=$(jq -r '.devDependencies."@types/node"' "$application_src"/web/ui/package.json | tr -d '^')
node_version="${node_version%%\.*}"
yq -i 'del(.parts.prometheus.build-snaps.[] | select(. == "node/*"))' "$rockcraft_yaml"
ver="${node_version%%\.*}" yq -i '.parts.prometheus.build-snaps += "node/"+strenv(ver)+"/stable"' "$rockcraft_yaml"
ver="$node_version" yq -i '.parts.prometheus.build-snaps += "node/"+strenv(ver)+"/stable"' "$rockcraft_yaml"

0 comments on commit aa11e8a

Please sign in to comment.