Skip to content

Rename file

Rename file #34

name: Publish to Confluence
on: push
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Rename file
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
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.md'
search-text: '<!--*-->'
replacement-text: 'test test test'
#exclude: 'node_modules/**'
encoding: 'utf8'