20efcf404c
* set target to ES5 * refactor types * use .gitkeep * use dot to make dist/js dirs on top * add hako * add Hako * add madara * fix: url path js -> .js * fix: branch * freestyle for using UA, cookie * add parseNovels for Hako * update readme * fix: conflict types * add Kolnovel, remove node-fetch * add bestlightnovel * add plugins * WQMangaStreamScraper * PandaMTL * NobleMTL * LightNovelBrasil * WPMangaStream * add filters for popularNovels * fix undefined json * Linovelib (#26) * linovelib CN * icon for linovelib * fix undefined chapter * add check * fix: add artist * TuNovelaLigera ES + Madara Fix (#28) * app repo test * POST is now working * update madara template + run generator * template fix didnt get pushed commited idk why * template update POST * generated * fix: useNewChapterEndpoint update (#29) * useNewChapterEndpoint update * Update Selectors --------- Co-authored-by: K1ngfish3r <trulyihu@gmail.com>
57 lines
1.8 KiB
YAML
57 lines
1.8 KiB
YAML
name: Update json files
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- plugins
|
|
|
|
jobs:
|
|
updatejson:
|
|
if: github.repository == 'LNReader/lnreader-sources'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: "16"
|
|
- name: Install dependencies
|
|
run: npm install
|
|
|
|
- name: Clean up current dist
|
|
run: |
|
|
rm -rf .dist
|
|
mkdir .dist
|
|
cat > config.json << EOF
|
|
{
|
|
"githubUsername": "LNReader",
|
|
"githubRepository": "lnreader-sources",
|
|
"githubBranch": "plugins"
|
|
}
|
|
EOF
|
|
- name: Update json files
|
|
id: json
|
|
run: |
|
|
npm run json
|
|
changes="$(git diff --staged .dist)"
|
|
if [ "$changes" ]
|
|
then
|
|
changes=1
|
|
else
|
|
changes=""
|
|
fi
|
|
echo "json-diff=$changes" >> $GITHUB_OUTPUT
|
|
|
|
- name: Create pull request
|
|
if: ${{ steps.json.outputs.json-diff }}
|
|
uses: peter-evans/create-pull-request@v4
|
|
with:
|
|
token: ${{ secrets.REPO_SCOPED_TOKEN }}
|
|
author: rajarsheechatterjee <rajarshee.adm@gmail.com>
|
|
committer: rajarsheechatterjee <rajarshee.adm@gmail.com>
|
|
commit-message: "plugins: update json files for new plugins"
|
|
title: Update json files
|
|
labels: enhancement
|
|
body: Auto-generated PR for updating json files
|
|
branch: update-json
|
|
delete-branch: true
|