Skip to content

Commit

Permalink
Updated comment replacing logic
Browse files Browse the repository at this point in the history
  • Loading branch information
villyes-ledger committed Nov 3, 2024
1 parent 4db32b2 commit 930a37d
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/publish_jfrog_login.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:

- name: Rename all .md files
run: find . -depth -name "*.md" -exec sh -c 'f="{}"; mv -- "$f" "$(dirname "$f")/jfrog_login_$(basename "$f")"' \;
#run: find . -depth -name "*.md" -exec sh -c 'f="{}"; mv -- "$f" "${f%.md}_jfrog_login.md"' \;

- name: Publish Markdown to Confluence
uses: markdown-confluence/publish-action@v5
Expand All @@ -25,17 +24,5 @@ jobs:
contentRoot: actions/jfrog-login/
#configFile: .markdown-confluence.json

- name: Replace string in files TEST
run: sed -i 's/secure/test/g' README_jfrog_login.md

#- name: Replace string in files 1
# run: sed -i 's/<!--.*-->/test/g' README_jfrog_login.md

#- name: Replace string in files 2
# uses: richardrigutins/replace-in-files@v2
# with:
# files: 'actions/jfrog-login/README_jfrog_login.md'
# search-text: '<!--*-->'
# replacement-text: 'test test test'
# exclude: 'node_modules/**'
# encoding: 'utf8'
- name: Replace comments with a space
run: find . -type f -name "*.md" -exec sed -i 's/<!--.*-->/ /g' {} +

0 comments on commit 930a37d

Please sign in to comment.