Skip to content

Commit

Permalink
update_workflow_job
Browse files Browse the repository at this point in the history
  • Loading branch information
lqS0317 authored and lqS0317 committed May 9, 2024
1 parent 2950f08 commit b45edbb
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/update_readme.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
name: update readme
on:
schedule:
- cron: '0 5 * * *'
# on:
# schedule:
# - cron: '0 12 */7 * *'
on:
pull_request:
branches:
- main
run-name: update readme
jobs:
update-readme:
Expand All @@ -15,6 +19,7 @@ jobs:
- name: Update README
run: |
date=$(date +%Y%m%d)
echo $date
current_time=$(grep -Eo '[0-9]{8}' run-node-mainnetv2.md |head -n1)
sed -i "s/${current_time}/$date/g" run-node-mainnetv2.md
git config --global user.email "[email protected]"
Expand Down

0 comments on commit b45edbb

Please sign in to comment.