From 796ce0734c1c6a26b05bc53b3fca98cd05594e5c Mon Sep 17 00:00:00 2001 From: vanda-illyes Date: Sun, 3 Nov 2024 22:08:11 +0100 Subject: [PATCH] Removed generic workflow and testing para tag removal --- .github/workflows/publish_generic.yaml | 28 ------------------------ .github/workflows/publish_sign_blob.yaml | 5 ++++- 2 files changed, 4 insertions(+), 29 deletions(-) delete mode 100644 .github/workflows/publish_generic.yaml diff --git a/.github/workflows/publish_generic.yaml b/.github/workflows/publish_generic.yaml deleted file mode 100644 index 18674d0..0000000 --- a/.github/workflows/publish_generic.yaml +++ /dev/null @@ -1,28 +0,0 @@ -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 all .md files - run: find . -depth -name "*.md" -exec sh -c 'f="{}"; d="$(basename "$(dirname "$f")")"; mv -- "$f" "$(dirname "$f")/${d}_$(basename "$f")"' \; - - - name: Replace comments with a space - run: find . -type f -name "*.md" -exec sed -i 's// /g' {} + - - - name: Publish Markdown to Confluence - uses: markdown-confluence/publish-action@v5 - with: - confluenceBaseUrl: https://ledgerhq.atlassian.net/ - confluenceParentId: 5186060332 - atlassianUserName: ${{ secrets.ATLASSIAN_USERNAME }} - atlassianApiToken: ${{ secrets.ATLASSIAN_API_TOKEN }} - folderToPublish: . - contentRoot: actions/ - #configFile: .markdown-confluence.json diff --git a/.github/workflows/publish_sign_blob.yaml b/.github/workflows/publish_sign_blob.yaml index c233e4f..777d4da 100644 --- a/.github/workflows/publish_sign_blob.yaml +++ b/.github/workflows/publish_sign_blob.yaml @@ -14,7 +14,10 @@ jobs: run: find . -depth -name "*.md" -exec sh -c 'f="{}"; mv -- "$f" "$(dirname "$f")/sign_blob_$(basename "$f")"' \; - name: Replace comments with a space - run: find . -type f -name "*.md" -exec sed -i 's// /g' {} + + run: find . -type f -name "*.md" -exec sed -i 's// /g' {} + + + - name: Remove

and

tags + run: find . -type f -name "*.md" -exec sed -i 's/<\/\?p>//g' {} + - name: Publish Markdown to Confluence uses: markdown-confluence/publish-action@v5