Skip to content

Commit

Permalink
action
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-bodnar committed Jan 16, 2024
1 parent 3e4a4ea commit ce3c619
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,23 @@ jobs:
- name: Restore dependencies
run: dotnet restore

- name: Clean the Readme
run: |
sed -i.bak '/\<p align="center"\>/,/\<\\/p\>/d' README.md
sed -i.bak '/\<div/d' README.md
sed -i.bak '/\<\\/div/d' README.md
rm README.md.bak
cat README.md

# - name: Clean the Readme
# run: |
# sed -i.bak '/\<p align="center"\>/,/\<\\/p\>/d' README.md
# sed -i.bak '/\<div/d' README.md
# sed -i.bak '/\<\\/div/d' README.md
# rm README.md.bak
# cat README.md

- name: Find and Replace
uses: jacobtomlinson/gha-find-replace@v3
with:
include: "README.md"
find: "<p align=\"center\">"
replace: ""
regex: true


- name: Build
run: dotnet build -c Release --no-restore
Expand Down

0 comments on commit ce3c619

Please sign in to comment.