diff --git a/.github/workflows/update_readme.yml b/.github/workflows/update_readme.yml index b84d3a7..ca12f81 100644 --- a/.github/workflows/update_readme.yml +++ b/.github/workflows/update_readme.yml @@ -14,12 +14,12 @@ jobs: ref: main - name: Update README run: | + date=$(date +%Y%m%d --date='last sunday') echo $(date) - date=$(date +%Y%m%d) 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 "git.action@mantle.xyz" git config --global user.name "mantle-github-bot" git add run-node-mainnetv2.md git commit -m "update snapshot tar date" - git push https://mantle-github-bot:${{ secrets.PAT }}@github.com/mantlenetworkio/networks.git main \ No newline at end of file + git push https://mantle-github-bot:${{ secrets.PAT }}@github.com/mantlenetworkio/networks.git main