-
Notifications
You must be signed in to change notification settings - Fork 34
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
lqS0317
authored and
lqS0317
committed
May 9, 2024
1 parent
5453ce7
commit 5009475
Showing
1 changed file
with
29 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,29 @@ | ||
name: update readme | ||
# on: | ||
# schedule: | ||
# - cron: '0 12 */7 * *' | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
run-name: update readme | ||
jobs: | ||
update-readme: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Update README | ||
run: | | ||
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 add run-node-mainnetv2.md | ||
git commit -m "update snapshot tar date" | ||
git push https://mantle-git-bot:${{ secrets.PAT }}@github.com/mantlenetworkio/networks.git | ||
# - uses: int128/update-generated-files-action@v2 | ||
# name: Update resources | ||
# with: | ||
# token: ${{ secrets.PAT }} | ||
# commit-message: "Update snapshot date" |