-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactoring and change the github action
- Loading branch information
1 parent
58d8094
commit d889f08
Showing
5 changed files
with
12 additions
and
12 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Write Date to File | ||
name: Write Random Value to File | ||
|
||
on: | ||
push: | ||
|
@@ -8,7 +8,7 @@ on: | |
- cron: "0 21 */1 * *" | ||
|
||
jobs: | ||
write_date: | ||
write_random_value: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
|
@@ -19,11 +19,11 @@ jobs: | |
with: | ||
python-version: '3.x' | ||
|
||
- name: Write current date to file | ||
- name: Write random value to file | ||
run: | | ||
echo $(date +%Y-%m-%d) > current_date.txt | ||
echo $RANDOM > current_value.txt | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Actions" | ||
git add current_date.txt | ||
git commit -m "Update current date" | ||
git add current_value.txt | ||
git commit -m "Update current value" | ||
git push |
File renamed without changes
File renamed without changes
File renamed without changes
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