mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-07-19 00:20:00 +00:00
Workflow: Add amend strategy.
This commit is contained in:
parent
d16b99d1f5
commit
b60e1e296c
20
.github/.domain/domains.json
vendored
20
.github/.domain/domains.json
vendored
@ -6,10 +6,10 @@
|
|||||||
"time_change": "2025-03-19 12:20:19"
|
"time_change": "2025-03-19 12:20:19"
|
||||||
},
|
},
|
||||||
"cb01new": {
|
"cb01new": {
|
||||||
"domain": "digital",
|
"domain": "live",
|
||||||
"full_url": "https://cb01net.digital/",
|
"full_url": "https://cb01net.live/",
|
||||||
"old_domain": "life",
|
"old_domain": "digital",
|
||||||
"time_change": "2025-06-07 07:18:34"
|
"time_change": "2025-06-11 07:20:30"
|
||||||
},
|
},
|
||||||
"animeunity": {
|
"animeunity": {
|
||||||
"domain": "so",
|
"domain": "so",
|
||||||
@ -25,9 +25,9 @@
|
|||||||
},
|
},
|
||||||
"guardaserie": {
|
"guardaserie": {
|
||||||
"domain": "meme",
|
"domain": "meme",
|
||||||
"full_url": "http://guardaserie.meme/",
|
"full_url": "https://guardaserie.meme/",
|
||||||
"old_domain": "meme",
|
"old_domain": "meme",
|
||||||
"time_change": "2025-06-10 10:23:05"
|
"time_change": "2025-06-11 07:20:36"
|
||||||
},
|
},
|
||||||
"ddlstreamitaly": {
|
"ddlstreamitaly": {
|
||||||
"domain": "co",
|
"domain": "co",
|
||||||
@ -54,9 +54,9 @@
|
|||||||
"time_change": "2025-06-10 10:23:11"
|
"time_change": "2025-06-10 10:23:11"
|
||||||
},
|
},
|
||||||
"altadefinizionegratis": {
|
"altadefinizionegratis": {
|
||||||
"domain": "cc",
|
"domain": "club",
|
||||||
"full_url": "https://altadefinizionegratis.cc/",
|
"full_url": "https://altadefinizionegratis.club/",
|
||||||
"old_domain": "icu",
|
"old_domain": "cc",
|
||||||
"time_change": "2025-06-02 10:35:25"
|
"time_change": "2025-06-11 07:20:42"
|
||||||
}
|
}
|
||||||
}
|
}
|
34
.github/workflows/update_domain.yml
vendored
34
.github/workflows/update_domain.yml
vendored
@ -1,5 +1,4 @@
|
|||||||
name: Update domains
|
name: Update domains (Amend Strategy)
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 7-21 * * *"
|
- cron: "0 7-21 * * *"
|
||||||
@ -8,22 +7,25 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
update-domains:
|
update-domains:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0 # Serve per l'amend
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.12'
|
python-version: '3.12'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install httpx tldextract ua-generator dnspython
|
pip install httpx tldextract ua-generator dnspython
|
||||||
|
|
||||||
pip install --upgrade pip setuptools wheel
|
pip install --upgrade pip setuptools wheel
|
||||||
|
|
||||||
- name: Configure DNS
|
- name: Configure DNS
|
||||||
@ -33,18 +35,24 @@ jobs:
|
|||||||
|
|
||||||
- name: Execute domain update script
|
- name: Execute domain update script
|
||||||
run: python .github/.domain/domain_update.py
|
run: python .github/.domain/domain_update.py
|
||||||
|
|
||||||
- name: Commit and push changes (if any)
|
- name: Always amend last commit
|
||||||
run: |
|
run: |
|
||||||
git config --global user.name 'github-actions[bot]'
|
git config --global user.name 'github-actions[bot]'
|
||||||
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
|
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
|
||||||
|
|
||||||
# Check if domains.json was modified
|
|
||||||
if ! git diff --quiet .github/.domain/domains.json; then
|
if ! git diff --quiet .github/.domain/domains.json; then
|
||||||
|
echo "📝 Changes detected - amending last commit"
|
||||||
git add .github/.domain/domains.json
|
git add .github/.domain/domains.json
|
||||||
git commit -m "Automatic domain update [skip ci]"
|
git commit --amend --no-edit
|
||||||
echo "Changes committed. Attempting to push..."
|
git push --force-with-lease origin main
|
||||||
git push
|
|
||||||
else
|
else
|
||||||
echo "No changes to .github/.domain/domains.json to commit."
|
echo "✅ No changes to domains.json"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- name: Verify repository state
|
||||||
|
if: failure()
|
||||||
|
run: |
|
||||||
|
echo "❌ Something went wrong. Repository state:"
|
||||||
|
git log --oneline -5
|
||||||
|
git status
|
@ -814,9 +814,6 @@ Addon per Stremio che consente lo streaming HTTPS di film, serie, anime e TV in
|
|||||||
### 🧩 [streamingcommunity-unofficialapi](https://github.com/Blu-Tiger/streamingcommunity-unofficialapi)
|
### 🧩 [streamingcommunity-unofficialapi](https://github.com/Blu-Tiger/streamingcommunity-unofficialapi)
|
||||||
API non ufficiale per accedere ai contenuti del sito italiano StreamingCommunity.
|
API non ufficiale per accedere ai contenuti del sito italiano StreamingCommunity.
|
||||||
|
|
||||||
### 🎥 [stream-buddy](https://github.com/Bbalduzz/stream-buddy)
|
|
||||||
Tool per guardare o scaricare film dalla piattaforma StreamingCommunity.
|
|
||||||
|
|
||||||
# Disclaimer
|
# Disclaimer
|
||||||
|
|
||||||
This software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages, or other liability, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with the software or the use or other dealings in the software.
|
This software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages, or other liability, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with the software or the use or other dealings in the software.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user