Another fix to the DIY docs labeling workflow (#54805)
This commit is contained in:
@@ -71,7 +71,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
ISSUE_NUMS=$(echo "${{ github.event.pull_request.body }}" | grep -oE '#[0-9]+' | tr -d '#')
|
ISSUE_NUMS=$(echo "${{ github.event.pull_request.body }}" | grep -oE '(https://github.com/github/docs-content/issues/[0-9]+|#[0-9]+)' | grep -oE '[0-9]+')
|
||||||
for ISSUE_NUM in $ISSUE_NUMS; do
|
for ISSUE_NUM in $ISSUE_NUMS; do
|
||||||
LABELS=$(gh issue view $ISSUE_NUM --repo github/docs-content --json labels --jq '.labels[].name')
|
LABELS=$(gh issue view $ISSUE_NUM --repo github/docs-content --json labels --jq '.labels[].name')
|
||||||
if echo "$LABELS" | grep -q 'DIY docs'; then
|
if echo "$LABELS" | grep -q 'DIY docs'; then
|
||||||
|
|||||||
Reference in New Issue
Block a user