Files
addon/.gitea/workflows/updateDomains.yaml
stevazi b998924ead
All checks were successful
Update channel domains / update (push) Successful in 17s
update workflow
2025-01-18 00:02:27 +01:00

38 lines
1007 B
YAML

name: Update channel domains
on:
workflow_dispatch:
schedule:
- cron: '30 17 * * *'
push:
branches:
- master
jobs:
update:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: '3.7'
architecture: 'x64'
- name: Install dependencies
run: pip install requests
- name: Update domains
run: python tools/updateDomains.py
- name: Configure git
run: |
git config user.name "Gitea CI Bot"
git config user.email "ci-bot@gitea.local"
- name: Commit changes
run: |
git add .
git commit -m "Aggiornamento domini" || echo "No changes to commit"
- name: push
run: |
git push https://stevazi:${{ secrets.API_TOKEN_GITHUB }}@git.stevazi.mywire.org/stevazi/addon.git master