mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-14 07:08:06 +00:00
Attempt to use the latest snapcraft build
This commit is contained in:
parent
6183350182
commit
2473068a1a
@ -27,7 +27,7 @@ else
|
|||||||
echo "version.go updated"
|
echo "version.go updated"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
version=$version ./yq -i '.version=strenv(version)' snap/snapcraft.yaml
|
version=$version ./yq -i '.version=strenv(version) | .parts.yq.source-tag=strenv(version)' snap/snapcraft.yaml
|
||||||
|
|
||||||
actualSnapVersion=$(./yq '.version' snap/snapcraft.yaml)
|
actualSnapVersion=$(./yq '.version' snap/snapcraft.yaml)
|
||||||
|
|
||||||
@ -38,6 +38,15 @@ else
|
|||||||
echo "snapcraft updated"
|
echo "snapcraft updated"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
actualSnapVersion=$(./yq '.parts.yq.source-tag' snap/snapcraft.yaml)
|
||||||
|
|
||||||
|
if [ "$actualSnapVersion" != "$version" ]; then
|
||||||
|
echo "Failed to update snapcraft"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "snapcraft updated"
|
||||||
|
fi
|
||||||
|
|
||||||
git add cmd/version.go snap/snapcraft.yaml
|
git add cmd/version.go snap/snapcraft.yaml
|
||||||
git commit -m 'Bumping version'
|
git commit -m 'Bumping version'
|
||||||
git tag $version
|
git tag $version
|
||||||
|
@ -3,17 +3,26 @@ version: 'v4.40.5'
|
|||||||
summary: A lightweight and portable command-line data file processor
|
summary: A lightweight and portable command-line data file processor
|
||||||
description: |
|
description: |
|
||||||
`yq` uses [jq](https://github.com/stedolan/jq) like syntax but works with yaml, json, xml, csv, properties and TOML files.
|
`yq` uses [jq](https://github.com/stedolan/jq) like syntax but works with yaml, json, xml, csv, properties and TOML files.
|
||||||
base: core18
|
base: core22
|
||||||
grade: stable # devel|stable. must be 'stable' to release into candidate/stable channels
|
grade: stable # devel|stable. must be 'stable' to release into candidate/stable channels
|
||||||
confinement: strict
|
confinement: strict
|
||||||
|
|
||||||
|
architectures:
|
||||||
|
- build-on: s390x
|
||||||
|
- build-on: ppc64el
|
||||||
|
- build-on: arm64
|
||||||
|
- build-on: armhf
|
||||||
|
- build-on: amd64
|
||||||
|
- build-on: i386
|
||||||
|
|
||||||
apps:
|
apps:
|
||||||
yq:
|
yq:
|
||||||
command: yq
|
command: bin/yq
|
||||||
plugs: [home, removable-media]
|
plugs: [home, removable-media]
|
||||||
parts:
|
parts:
|
||||||
yq:
|
yq:
|
||||||
plugin: go
|
plugin: go
|
||||||
go-channel: 1.20/stable
|
source: https://github.com/mikefarah/yq.git
|
||||||
source: .
|
source-tag: v4.40.5
|
||||||
source-type: git
|
build-snaps:
|
||||||
go-importpath: github.com/mikefarah/yq
|
- go/latest/stable
|
Loading…
Reference in New Issue
Block a user