Skip to content

Commit

Permalink
Update deploy .yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Iryna-Vyshniak committed Jul 14, 2024
1 parent 29b84f9 commit e1f3eb8
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Build and deploy to GitHub Pages
on:
push:
branches: [main]
schedule:
- cron: '0 0 */6 * *'

jobs:
build-and-deploy:
Expand All @@ -22,3 +24,27 @@ jobs:
with:
branch: gh-pages
folder: build

commit:
name: Commit changes
runs-on: ubuntu-latest
if: github.event_name == 'schedule'

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Make a change to update_log.txt
run: |
echo "Update on $(date)" > update_log.txt
- name: Configure Git user
run: |
git config --global user.name 'Iryna-Vyshniak'
git config --global user.email 'iryna.vyshniak@gmail.com'
- name: Commit changes
run: |
git add update_log.txt
git commit -m "Update log"
git push
Empty file added update_log.txt
Empty file.

0 comments on commit e1f3eb8

Please sign in to comment.