diff --git a/.github/workflows/autocomment.yaml b/.github/workflows/autocomment_staging_links.yaml similarity index 98% rename from .github/workflows/autocomment.yaml rename to .github/workflows/autocomment_staging_links.yaml index 7c980ef21..2c0ead5f5 100644 --- a/.github/workflows/autocomment.yaml +++ b/.github/workflows/autocomment_staging_links.yaml @@ -1,4 +1,4 @@ -name: Auto Comment on PR +name: autocomment_staging_links on: pull_request: @@ -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)