Skip to content

Commit 0d8a214

Browse files
Update .github/workflows/link-checker.yml
Co-authored-by: Paweł Rynarzewski <92171763+pawel-rynarzewski-c8y@users.noreply.github.com>
1 parent 270582a commit 0d8a214

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/link-checker.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@ jobs:
4545
id: label
4646
env:
4747
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
GH_REPO: ${{ github.repository }}
4849
run: |
4950
LABEL_NAME="broken-link-${{ matrix.branch }}"
50-
if gh label list -L 1000 | grep -q "^${LABEL_NAME}\b"; then
51+
if gh api "repos/$GH_REPO/labels/$LABEL_NAME" &>/dev/null; then
5152
echo "Label ${LABEL_NAME} already exists"
5253
else
5354
echo "Creating label ${LABEL_NAME}"

0 commit comments

Comments
 (0)