diff --git a/.github/workflows/urls-check.yml b/.github/workflows/urls-check.yml new file mode 100644 index 000000000000..e8058188695d --- /dev/null +++ b/.github/workflows/urls-check.yml @@ -0,0 +1,21 @@ +name: urls-check +on: + schedule: + - cron: '0 4 * * *' + # can be run manually on https://github.com/cockpit-project/cockpit/actions + workflow_dispatch: +jobs: + urls-check: + runs-on: ubuntu-latest + steps: + - name: Set up configuration and secrets + run: | + echo '${{ secrets.GITHUB_TOKEN }}' > ~/.config/github-token + + - name: Clone repository + uses: actions/checkout@v2 + + - name: Run urls-check action + run: | + tools/make-bots + tools/urls-check diff --git a/.tasks b/.tasks deleted file mode 100755 index 45f62d5b4a6f..000000000000 --- a/.tasks +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -# Tasks file - -# This file produces the possible set of bot tasks to be executed in the -# current repository by bots. Empty lines and commented lines are ignored -# and commented lines are removed. If this file is executable it will be -# run, and the output will be used as the list of tasks. - -# The tasks are sorted descending alphabetically and a task is chosen from -# near the top of the sorted result. The task will be run in a shell by the -# Cockpit bots. - -set -ex - -# When run automated, randomize to minimize stampeding herd -if [ -t 0 ]; then - chance=10 -else - chance=$(shuf -i 0-10 -n 1) -fi - -# File issues for these tasks -if [ $chance -gt 9 ]; then - ./tools/urls-check -fi