Skip to content

Commit

Permalink
fix typo in rock-update workflow (#133)
Browse files Browse the repository at this point in the history
* fix rock-update to use major-minor go version

* fix typo
  • Loading branch information
lucabello authored Dec 7, 2023
1 parent 992db43 commit 0e503f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/rock-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
# Delete the Go dependency and add the updated one
yq -i 'del(.parts.${{ inputs.rock-name }}.build-snaps.[] | select(. == "go/*"))' $GITHUB_WORKSPACE/main/$version/rockcraft.yaml
# Snap channels are named after major.minor only, so cut the go version to that format
go_major_minor=$(echo $go_version | sed -E "s/([0-9]+\.[0-9]+).*/\1/"))
go_major_minor=$(echo $go_version | sed -E "s/([0-9]+\.[0-9]+).*/\1/")
go_v="$go_major_minor" yq -i '.parts.${{ inputs.rock-name }}.build-snaps += "go/"+strenv(go_v)+"/stable"' $GITHUB_WORKSPACE/main/$version/rockcraft.yaml
- name: Update other build dependencies
Expand Down

0 comments on commit 0e503f9

Please sign in to comment.