Skip to content

Commit 00051c4

Browse files
authored
Create print-readme-before-update
1 parent dd5728d commit 00051c4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
- name: Print README before update
2+
run: cat README.md
3+
4+
- name: Update README with the Latest Commit
5+
run: |
6+
COMMIT_LINK=$(cat commit-link.txt)
7+
sed -i "s|<!--START_SECTION:latest-commit-->.*<!--END_SECTION:latest-commit-->|<!--START_SECTION:latest-commit-->$COMMIT_LINK<!--END_SECTION:latest-commit-->|" README.md
8+
9+
- name: Print README after update
10+
run: cat README.md
11+
12+
- name: Check git status
13+
run: git status

0 commit comments

Comments
 (0)