-
-
Notifications
You must be signed in to change notification settings - Fork 28
40 lines (37 loc) · 1.03 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# 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