Skip to content

Commit 60a9105

Browse files
committed
test: test new version
1 parent 605b369 commit 60a9105

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

.github/workflows/test-github-action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ jobs:
2323
with:
2424
fetch-depth: 0
2525
- name: Sync markdown files to Confluence
26-
uses: Telefonica/[email protected].2
26+
uses: Telefonica/[email protected].3
2727
with:
2828
mode: tree
2929
docs-dir: './docs'
3030
confluence-url: 'https://confluence.tid.es'
3131
confluence-root-page-id: '333418648'
3232
confluence-space-key: 'CTO'
3333
confluence-personal-access-token: ${{ secrets.CONFLUENCE_PAT }}
34+
env:
35+
DOCS_HOST: https://foo.testing.com

markdown-confluence-sync.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/** @type {import('@tid-xcut/markdown-confluence-sync').Configuration} */
2+
3+
const DOCS_HOST = process.env.DOCS_HOST;
4+
5+
if (!DOCS_HOST) {
6+
throw new Error("DOCS_HOST environment variable is not set");
7+
}
8+
9+
module.exports = {
10+
confluence: {
11+
noticeTemplate: `NOTICE: This page is synced automatically with content from <a href="${DOCS_HOST}/docs/{{relativePathWithoutExtension}}.html" target="_blank">${DOCS_HOST}/docs/{{relativePathWithoutExtension}}.html</a>. Changes made manually will be lost, you should <a href="https://github.com/Telefonica/cross-idp/edit/main/components/website-static/docs/{{relativePath}}" target="_blank">edit this page in Github</a> instead.`,
12+
},
13+
};

markdown-confluence-sync.config.mjs

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)