Build TLD list #34
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
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@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 | |
with: | |
egress-policy: audit | |
- name: Checkout the code | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- 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 "ryan@ryanparman.com" | |
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 |