Auto update #20
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: Auto update | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
- name: Update | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "Aleksandr Zuev" | |
chmod +x download.sh | |
./download.sh ${{ secrets.PH_API_KEY }} ${{ secrets.PH_LOGIN }} | |
- name: Push changes | |
if: env.GIT_PUSH != 'no' | |
uses: ad-m/github-push-action@master | |
with: | |
ssh: true | |
branch: ${{ github.ref }} |