From e0888a426704f2e10e6a83c218ddce85d602b107 Mon Sep 17 00:00:00 2001 From: buehlere Date: Tue, 30 Jan 2024 15:13:49 -0500 Subject: [PATCH] gitactions update --- .github/generate_codeowners.sh | 2 +- .github/workflows/owners.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/generate_codeowners.sh b/.github/generate_codeowners.sh index 7e8b560c..4e869d66 100755 --- a/.github/generate_codeowners.sh +++ b/.github/generate_codeowners.sh @@ -14,7 +14,7 @@ for file in $METAS; do # Add a double star to the end of the path path="$path/**" - authors=$(yq ".authors | .[]" "$file" | sed 's/^//') + authors=$(yq '.authors | .[]' "$file" | sed 's/^//') # Remove quotes from authors authors=$(echo "$authors" | sed 's/"//g') echo "$path" $authors >> $output_file diff --git a/.github/workflows/owners.yml b/.github/workflows/owners.yml index 9eee0cdc..b4565909 100644 --- a/.github/workflows/owners.yml +++ b/.github/workflows/owners.yml @@ -19,7 +19,7 @@ jobs: - name: Install CLI Dependencies run: | sudo apt-get install fd-find wget - wget https://github.com/mikefarah/yq/releases/download/v4.2.0/yq_linux_amd64.tar.gz -O - | sudo tar xz && sudo mv yq_linux_amd64 /usr/bin/yq + wget https://github.com/mikefarah/yq/releases/download/v3/yq_linux_amd64.tar.gz -O - | sudo tar xz && sudo mv yq_linux_amd64 /usr/bin/yq - name: Run Generate Owner's Script run: | chmod +x ./.github/generate_codeowners.sh