Skip to content

Update Hostfiles

Update Hostfiles #62

Workflow file for this run

name: Update Hostfiles
on:
push:
schedule:
- cron: "0 2 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo content
uses: actions/checkout@v2
- name: Setup PHP
uses: franzliedke/gh-action-php@master
- name: Run PHP script
run: php ./cron.php
- name: Commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add -A
git commit -m "[GH ACTIONS] Updated hostfiles" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.TOKEN }}
branch: main