Skip to content

Replace text and rename file test #12

Replace text and rename file test

Replace text and rename file test #12

name: Publish to Confluence
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Rename file
run: mv actions/jfrog-login/README_jfrog_login.md actions/jfrog-login/README_jfrog_login_test.md
#- name: Delete file
# run: rm -f README_jfrog_login.md
publish:
runs-on: ubuntu-latest
steps:
#- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Publish Markdown to Confluence
uses: markdown-confluence/publish-action@v5
with:
confluenceBaseUrl: https://ledgerhq.atlassian.net/
confluenceParentId: 5036769289
atlassianUserName: ${{ secrets.ATLASSIAN_USERNAME }}
atlassianApiToken: ${{ secrets.ATLASSIAN_API_TOKEN }}
folderToPublish: .
contentRoot: actions/jfrog-login/
#configFile: .markdown-confluence.json
- name: Replace in files
uses: richardrigutins/replace-in-files@v2
with:
files: 'actions/jfrog-login/README_jfrog_login_test.md'
search-text: '<!--*-->'
replacement-text: 'test test test'
#exclude: 'node_modules/**'
encoding: 'utf8'