-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a44338a
commit 26ff847
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Commit | ||
|
||
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 '[email protected]' | ||
git add update_log.txt | ||
git commit -m "Update log" | ||
git push | ||
- name: Show Git log | ||
run: git log -1 |
Empty file.