anti-AD/.github/workflows/build-addr.yml

26 lines
666 B
YAML
Raw Normal View History

2019-12-26 10:12:38 +08:00
name: Auto build new list
2019-12-26 10:06:33 +08:00
on:
2019-12-26 10:06:33 +08:00
schedule:
2020-08-22 09:31:30 +08:00
- cron: "25 01 */3 * *"
2019-12-26 10:06:33 +08:00
jobs:
build:
runs-on: ubuntu-latest
steps:
2020-07-24 16:21:31 +08:00
- uses: actions/checkout@main
- name: Run start-ci.sh
2019-12-26 10:06:33 +08:00
run: |
2020-12-24 15:00:20 +08:00
sudo update-alternatives --set php /usr/bin/php7.4
2020-07-27 00:26:48 +08:00
./scripts/start-ci.sh
- name: Commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
2020-08-22 09:19:19 +08:00
git add *
git commit -m "Auto renew the anti-AD list." -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.PERSON_TOKEN }}
branch: 'master'