Periodic Trigger #335
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: Periodic Trigger | |
on: | |
schedule: | |
- cron: "0 8 * * *" | |
jobs: | |
periodic_trigger: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Update Submodules | |
run: | | |
git submodule update --init --recursive | |
git submodule foreach git pull origin main | |
git config --local user.email "fmelodic@gmail.com" | |
git config --local user.name "AndreyVnk" | |
git add . | |
git commit -m "Update submodules" | |
- name: Push Changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
force: true |