add maintenance workflow

this should keep the pubblic suffix state up to date
This commit is contained in:
Martin Cech 2025-03-19 20:46:15 +01:00 committed by GitHub
parent e93f0289f3
commit 73a5364eae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

45
.github/workflows/maintain.yml vendored Normal file
View File

@ -0,0 +1,45 @@
name: run Maintenance script
on:
schedule:
# # * is a special character in YAML so you have to quote this string
# # We'll run this weekly at 23.00 on Saturday.
- cron: '0 23 * * 6'
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Maintain
run: |
python maintain.sh
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
branch: create-pull-request/${{ steps.vars.outputs.branch_name }}
committer: dispoBot <martenson@dispobot>
commit-message: execution of maintenance script
title: maintenance script run
body: maintenance.sh has been executed and found a diff
labels: automated
assignees: martenson
reviewers: martenson