Skip to content

Main

Main #5467

Workflow file for this run

name: 'Main'
on:
pull_request:
branches: ['main']
schedule:
- cron: '45 * * * *'
workflow_dispatch:
permissions: {}
jobs:
update:
name: 'Update'
runs-on: 'ubuntu-latest'
permissions:
contents: 'write'
container: 'docker.io/ubuntu:latest'
steps:
- name: 'Install dependencies'
run: |
apt-get update
apt-get install -y --no-install-recommends ca-certificates curl git jq
- name: 'Checkout project'
uses: 'actions/checkout@v4'
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.BOT_GITHUB_TOKEN || github.token }}
- name: 'Update lists'
run: |
sh ./update.sh
- name: 'Push lists'
if: >-
github.event_name == 'schedule' ||
github.event_name == 'workflow_dispatch'
run: |
git config --global --add safe.directory "${PWD:?}"
git config --global user.name 'skiddle-bot'
git config --global user.email '165562787+skiddle-bot@users.noreply.github.com'
sh ./push.sh