Script #156
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: Script | |
on: | |
schedule: | |
- cron: "0 15 * * 1" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repo content | |
uses: actions/checkout@v2 # checkout the repository content to github runner. | |
- name: PHP Runner | |
uses: franzliedke/[email protected] | |
- name: execute php script # run the run.py to get the latest data | |
run: | | |
php run.php | |
- name: commit files | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "fbiego" | |
git add -A | |
git commit -m "update data" -a | |
- name: push changes | |
uses: ad-m/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: main |