Merge branch 'master' into insider

This commit is contained in:
Baptiste Augrain 2022-08-29 16:10:21 +02:00
commit 2ce1de5f4c
2 changed files with 4 additions and 8 deletions

View file

@ -4,14 +4,6 @@ on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: '0 0 * * *' - cron: '0 0 * * *'
push:
branches: [ insider ]
paths-ignore:
- '**/*.md'
pull_request:
branches: [ insider ]
paths-ignore:
- '**/*.md'
jobs: jobs:
build: build:

View file

@ -74,11 +74,15 @@ fi
cp product.json product.json.bak cp product.json product.json.bak
setpath() { setpath() {
{ set +x; } 2>/dev/null
echo "$( cat "${1}.json" | jq --arg 'path' "${2}" --arg 'value' "${3}" 'setpath([$path]; $value)' )" > "${1}.json" echo "$( cat "${1}.json" | jq --arg 'path' "${2}" --arg 'value' "${3}" 'setpath([$path]; $value)' )" > "${1}.json"
set -x
} }
setpath_json() { setpath_json() {
{ set +x; } 2>/dev/null
echo "$( cat "${1}.json" | jq --arg 'path' "${2}" --argjson 'value' "${3}" 'setpath([$path]; $value)' )" > "${1}.json" echo "$( cat "${1}.json" | jq --arg 'path' "${2}" --argjson 'value' "${3}" 'setpath([$path]; $value)' )" > "${1}.json"
set -x
} }
# set fields in product.json # set fields in product.json