mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2024-09-12 09:41:47 +02:00
CI: Use jq to process package.json
[why] `grep` and `awk` do not know json. This might break if some format changes or whatever. [note] The font matrix setup is also with `jq`. Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
parent
e972eb0785
commit
a777d53008
1 changed files with 1 additions and 5 deletions
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
|
@ -48,11 +48,7 @@ jobs:
|
||||||
cd -- "$GITHUB_WORKSPACE"
|
cd -- "$GITHUB_WORKSPACE"
|
||||||
echo "Contents of package.json:"
|
echo "Contents of package.json:"
|
||||||
cat package.json
|
cat package.json
|
||||||
RELEASE_VERSION=$(cat package.json \
|
RELEASE_VERSION=$(jq '.version' package.json | sed 's/[ ",]//g')
|
||||||
| grep version \
|
|
||||||
| head -1 \
|
|
||||||
| awk -F: '{ print $2 }' \
|
|
||||||
| sed 's/[ ",]//g')
|
|
||||||
echo "::set-output name=val::$RELEASE_VERSION"
|
echo "::set-output name=val::$RELEASE_VERSION"
|
||||||
|
|
||||||
- name: Determine candidate status
|
- name: Determine candidate status
|
||||||
|
|
Loading…
Reference in a new issue