forked from skyzyx/iana-tlds
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (44 loc) · 1.24 KB
/
build.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
41
42
43
44
45
46
47
48
49
50
51
52
name: Build TLD list
on:
push:
branches:
- main
- features/**
- dependabot/**
pull_request:
branches:
- main
schedule:
# https://crontab.guru/#41_9_*_*_6
- cron: "41 9 * * 6"
permissions:
contents: read
jobs:
docker:
permissions:
contents: write # for Git to git push
timeout-minutes: 2
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit
- name: Checkout the code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Build the container and run the generator
run: docker compose up
- name: Git config
run: |
git config --global user.name "Ryan Parman (Automated)"
git config --global user.email "[email protected]"
git pull --rebase --autostash
- name: Git commit
run: |
if [[ "$(git status -sb | wc -l)" == "1" ]]; then
echo "No changes to commit."
else
git add .
git commit -m "Automated commit: $(date +"%Y-%m-%dT%T%z")"
git push origin main
fi