Skip to content

Commit

Permalink
feat: add logging for LightNovelWorld theme detection in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
error7404 committed Oct 30, 2024
1 parent 8d29332 commit 5847b7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/theme_auto_label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ jobs:
BASE_URL: ${{ steps.get_base_url.outputs.BASE_URL }}
USER_AGENT: ${{ steps.get_user_agent.outputs.USER_AGENT }}
run: |
echo "https://$BASE_URL/getwebappmsg"
curl --location --silent --fail "https://$BASE_URL/getwebappmsg" -H "User-Agent: $USER_AGENT"
if curl --location --silent --fail "https://$BASE_URL/getwebappmsg" -H "User-Agent: $USER_AGENT" | grep -q "{\"\$id\":\"1\",\"success\":false}"; then
echo "lighnovelworld=true" >> $GITHUB_OUTPUT
echo "✅ LightNovelWorld Theme Detected" >> $GITHUB_STEP_SUMMARY
Expand Down

0 comments on commit 5847b7d

Please sign in to comment.