Workflow: Add amend strategy.

This commit is contained in:
Lovi 2025-06-10 18:26:47 +02:00 committed by github-actions[bot]
parent d16b99d1f5
commit b60e1e296c
3 changed files with 31 additions and 26 deletions

View File

@ -6,10 +6,10 @@
"time_change": "2025-03-19 12:20:19"
},
"cb01new": {
"domain": "digital",
"full_url": "https://cb01net.digital/",
"old_domain": "life",
"time_change": "2025-06-07 07:18:34"
"domain": "live",
"full_url": "https://cb01net.live/",
"old_domain": "digital",
"time_change": "2025-06-11 07:20:30"
},
"animeunity": {
"domain": "so",
@ -25,9 +25,9 @@
},
"guardaserie": {
"domain": "meme",
"full_url": "http://guardaserie.meme/",
"full_url": "https://guardaserie.meme/",
"old_domain": "meme",
"time_change": "2025-06-10 10:23:05"
"time_change": "2025-06-11 07:20:36"
},
"ddlstreamitaly": {
"domain": "co",
@ -54,9 +54,9 @@
"time_change": "2025-06-10 10:23:11"
},
"altadefinizionegratis": {
"domain": "cc",
"full_url": "https://altadefinizionegratis.cc/",
"old_domain": "icu",
"time_change": "2025-06-02 10:35:25"
"domain": "club",
"full_url": "https://altadefinizionegratis.club/",
"old_domain": "cc",
"time_change": "2025-06-11 07:20:42"
}
}

View File

@ -1,5 +1,4 @@
name: Update domains
name: Update domains (Amend Strategy)
on:
schedule:
- cron: "0 7-21 * * *"
@ -8,12 +7,16 @@ on:
jobs:
update-domains:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Serve per l'amend
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Python
uses: actions/setup-python@v5
@ -23,7 +26,6 @@ jobs:
- name: Install dependencies
run: |
pip install httpx tldextract ua-generator dnspython
pip install --upgrade pip setuptools wheel
- name: Configure DNS
@ -34,17 +36,23 @@ jobs:
- name: Execute domain update script
run: python .github/.domain/domain_update.py
- name: Commit and push changes (if any)
- name: Always amend last commit
run: |
git config --global user.name 'github-actions[bot]'
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
echo "📝 Changes detected - amending last commit"
git add .github/.domain/domains.json
git commit -m "Automatic domain update [skip ci]"
echo "Changes committed. Attempting to push..."
git push
git commit --amend --no-edit
git push --force-with-lease origin main
else
echo "No changes to .github/.domain/domains.json to commit."
echo "No changes to domains.json"
fi
- name: Verify repository state
if: failure()
run: |
echo "❌ Something went wrong. Repository state:"
git log --oneline -5
git status

View File

@ -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)
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
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.