Main #956
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: "Main" | |
on: | |
push: | |
branches: ["*"] | |
pull_request: | |
branches: ["*"] | |
schedule: | |
- cron: "45 00 * * *" | |
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" | |
- 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 'hectorm-bot' | |
git config --global user.email 'noreply@molinero.dev' | |
sh ./push.sh |