We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 734c255 commit ea0bd01Copy full SHA for ea0bd01
1 file changed
.github/workflows/typespec-sync.yml
@@ -83,9 +83,9 @@ jobs:
83
set -euo pipefail
84
cd "$PACKAGE_PATH"
85
86
- SPEC_REPO=$(grep '^repo:' tsp-location.yaml | awk '{print $2}')
87
- SPEC_DIR=$(grep '^directory:' tsp-location.yaml | awk '{print $2}')
88
- CURRENT_COMMIT=$(grep '^commit:' tsp-location.yaml | awk '{print $2}')
+ SPEC_REPO=$(yq '.repo' tsp-location.yaml)
+ SPEC_DIR=$(yq '.directory' tsp-location.yaml)
+ CURRENT_COMMIT=$(yq '.commit' tsp-location.yaml)
89
90
echo "Spec repo: $SPEC_REPO"
91
echo "Spec directory: $SPEC_DIR"
0 commit comments