Add fictioneer multisrc (#1468)

* Add fictioneer multisrc, auto source req labeling for it, move daoistquest to it, add novelib

* fictioneer pagination, fix author, add status
This commit is contained in:
Adam Kemish
2025-01-30 11:17:58 +08:00
committed by GitHub
parent bd2d3fdd60
commit 09a0bfb489
6 changed files with 122 additions and 18 deletions
+19
View File
@@ -84,11 +84,28 @@ jobs:
echo "hotnovelpub=false" >> $GITHUB_OUTPUT
fi
- name: Check Fictioneer theme
id: check_fictioneer
env:
BASE_URL: ${{ steps.get_base_url.outputs.BASE_URL }}
USER_AGENT: ${{ steps.get_user_agent.outputs.USER_AGENT }}
run: |
if curl --location --output /dev/null --silent --head --fail "https://$BASE_URL/wp-content/themes/fictioneer/css/application.css" -H "User-Agent: $USER_AGENT"; then
echo "fictioneer=true" >> $GITHUB_OUTPUT
echo "✅ Fictioneer Theme Detected" >> $GITHUB_STEP_SUMMARY
elif curl --location --output /dev/null --silent --head --fail "http://$BASE_URL/wp-content/themes/fictioneer/css/application.css" -H "User-Agent: $USER_AGENT"; then
echo "fictioneer=true" >> $GITHUB_OUTPUT
echo "✅ Fictioneer Theme Detected" >> $GITHUB_STEP_SUMMARY
else
echo "fictioneer=false" >> $GITHUB_OUTPUT
fi
- name: Add Label
env:
MADARA: ${{ steps.check_madara.outputs.madara }}
LIGHNOVELWP: ${{ steps.check_lighnovelwp.outputs.lighnovelwp }}
HOTNOVELPUB: ${{ steps.check_hotnovelpub.outputs.hotnovelpub }}
FICTIONEER: ${{ steps.check_fictioneer.outputs.fictioneer }}
GH_TOKEN: ${{ github.token }}
run: |
if [[ "$MADARA" == "true" ]]; then
@@ -97,6 +114,8 @@ jobs:
gh issue edit $ISSUE_NUMBER --add-label "Theme: Lighnovelwp" -R $REPO
elif [[ "$HOTNOVELPUB" == "true" ]]; then
gh issue edit $ISSUE_NUMBER --add-label "Theme: Hotnovelpub" -R $REPO
elif [[ "$FICTIONEER" == "true" ]]; then
gh issue edit $ISSUE_NUMBER --add-label "Theme: Fictioneer" -R $REPO
else
echo "No Theme Detected" >> $GITHUB_STEP_SUMMARY
fi