File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 8888 _SDK_PACKAGE : ${{ inputs.sdk-package }}
8989 _SDK_VERSION : ${{ inputs.sdk-version }}
9090 run : |
91- ./scripts /update-sdk-version.sh "$_SDK_PACKAGE" "$_SDK_VERSION"
91+ ./Scripts /update-sdk-version.sh "$_SDK_PACKAGE" "$_SDK_VERSION"
9292
9393 - name : Create branch and commit
9494 env :
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- # Script to update SDK version in project-bwa.yml, project-bwk.yml and project-pm.ym
3+ # Script to update SDK version in project-bwa.yml, project-bwk.yml and project-pm.yml
44# Usage: ./Scripts/update-sdk-version.sh <sdk-package> <sdk-version>
55# ./Scripts/update-sdk-version.sh BitwardenSdk 2a6609428275c758fcda5383bfb6b3166ec29eda
66
@@ -23,11 +23,7 @@ FILES=(
2323for file in " ${FILES[@]} " ; do
2424 if [[ -f " $file " ]]; then
2525 echo " 🔧 Updating revision in $file ..."
26- sed -i.bak -E " /^packages:/,/^[^[:space:]]/ {
27- /$SDK_PACKAGE :/,/^[[:space:]]{2}[[:alnum:]]/ {
28- s/^([[:space:]]{4}revision: ).*/\1$SDK_VERSION /
29- }
30- }" " $file "
26+ yq -i " .packages[\" $SDK_PACKAGE \" ].revision = \" $SDK_VERSION \" " " $file "
3127 echo " ✅ Updated revision line:"
3228 grep " revision:" " $file "
3329 else
You can’t perform that action at this time.
0 commit comments