From 3b75294bd1d831e1d1a5624294adc03387de3f60 Mon Sep 17 00:00:00 2001 From: Peter Nied Date: Tue, 17 Oct 2023 06:43:33 -0500 Subject: [PATCH] Use another technique to read the table Signed-off-by: Peter Nied --- action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 52f805e..c617de4 100644 --- a/action.yml +++ b/action.yml @@ -31,7 +31,8 @@ runs: fi shell: bash - - run: echo "maintainers=$(awk '/^## Current Maintainers$/,/^##/{print}' ${{ inputs.maintainers-file }} | grep 'github.com/' | awk -F'(' '{print $2}' | awk -F')' '{print $1}' | awk -F'/' '{print $NF}')" >> $GITHUB_ENV + - run: | + echo "maintainers=$(awk '/## Current Maintainers/ {flag=1; next} flag && /^\|/ {print $3} !/^\|/ && flag {exit}' ${{ inputs.maintainers-file }} | grep -oP '\[\K([^\]]+)')" >> $GITHUB_ENV shell: bash - run: |