mirror of
https://github.com/0belous/universal-plugin-repo.git
synced 2026-03-22 01:36:53 -03:00
separate manifests
This commit is contained in:
parent
28914fac33
commit
2ecf69e128
7 changed files with 81 additions and 39 deletions
30
.github/workflows/format-lists.yml
vendored
Normal file
30
.github/workflows/format-lists.yml
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
name: Format Sources Lists
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- 'sources.txt'
|
||||
- 'sourcesnsfw.txt'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
format:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.head_ref || github.ref }}
|
||||
|
||||
- name: Sort and remove duplicates
|
||||
run: |
|
||||
LC_ALL=C sort -u -o sources.txt sources.txt
|
||||
LC_ALL=C sort -u -o sourcesnsfw.txt sourcesnsfw.txt
|
||||
|
||||
- name: Commit changes
|
||||
run: |
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git add sources.txt sourcesnsfw.txt
|
||||
git diff --quiet && git diff --staged --quiet || (git commit -m "Auto-format sources lists: sort and remove duplicates" && git push)
|
||||
4
.github/workflows/update.yml
vendored
4
.github/workflows/update.yml
vendored
|
|
@ -2,7 +2,7 @@ name: Manifest updater
|
|||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
branches: [ main, testing ]
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
|
||||
|
|
@ -21,6 +21,6 @@ jobs:
|
|||
- run: |
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git add manifest.json images/
|
||||
git add manifest.json manifestnsfw.json images/
|
||||
git commit -m "Generate manifest" || exit 0
|
||||
git push
|
||||
Loading…
Add table
Add a link
Reference in a new issue