From 73a5364eae3c0ad2045f21bc40a602fcb658df61 Mon Sep 17 00:00:00 2001 From: Martin Cech Date: Wed, 19 Mar 2025 20:46:15 +0100 Subject: [PATCH] add maintenance workflow this should keep the pubblic suffix state up to date --- .github/workflows/maintain.yml | 45 ++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/maintain.yml diff --git a/.github/workflows/maintain.yml b/.github/workflows/maintain.yml new file mode 100644 index 0000000..dadbab5 --- /dev/null +++ b/.github/workflows/maintain.yml @@ -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 + 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