Skip to content

Update GitHub Actions workflow #2

Update GitHub Actions workflow

Update GitHub Actions workflow #2

Workflow file for this run

name: Deploy
on:
schedule:
- cron: '0 0 */4 * *'
push:
branches:
- main
jobs:
commit:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Display current directory
run: pwd
- name: List files
run: ls -la
- name: Make a change
run: |
echo "Update on $(date)" > update_log.txt
- name: Display file content
run: cat update_log.txt
- name: Commit changes
run: |
git config --global user.name 'Iryna-Vyshniak'
git config --global user.email 'iryna.vyshniak@gmail.com'
git add update_log.txt
git commit -m "Update deploy"
git push
- name: Show Git log
run: git log -1