diff --git a/.github/workflows/autocomment.yaml b/.github/workflows/autocomment.yaml index a430b69405..7c980ef213 100644 --- a/.github/workflows/autocomment.yaml +++ b/.github/workflows/autocomment.yaml @@ -50,7 +50,7 @@ jobs: -H "Authorization: Bearer ${GITHUB_TOKEN}" \ $FILES_URL \ | jq -r --arg prefix $BRANCH_NAME/ '.[] | select(((.filename | test("content/(?!.*embed).*\\.md")) and .status != "removed")) | ($prefix + .filename)' \ - | sed -E -e 's|(^[^/]+/)([^/]+/)|\1|' -e 's|^|https://redis.io/docs/staging/|' -e 's|(_?index)?\.md||' \ + | sed -E -e 's|(^[^/]+/)([^/]+/)|\1|' -e 's|^|https://redis.io/docs/staging/|' -e 's|\/(_?index)?\.md|\/|' \ | sort \ | uniq)