Skip to content

Commit 63b6684

Browse files
authored
Update check-plugin-links.yml
Test 2
1 parent b28a4dc commit 63b6684

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/check-plugin-links.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,13 @@ jobs:
1616

1717
- name: Fetch `badges.json` from gh-pages
1818
run: |
19-
git fetch origin gh-pages
20-
git checkout gh-pages -- badges.json
19+
git fetch origin gh-pages:gh-pages || echo "gh-pages branch does not exist."
20+
if [ -f badges.json ]; then
21+
echo "badges.json successfully fetched from gh-pages."
22+
else
23+
echo "No badges.json file found in gh-pages branch."
24+
exit 1
25+
fi
2126
2227
- name: Set up Node.js
2328
uses: actions/setup-node@v3

0 commit comments

Comments
 (0)