Skip to content

Commit 30d541d

Browse files
committed
test: Sync Readme to Confluence
1 parent 18fcb69 commit 30d541d

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

.github/workflows/test-e2e.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
2+
# SPDX-License-Identifier: MIT
3+
4+
name: Test E2E
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
- release
11+
- test/add-tests
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
sync-to-confluence:
18+
name: Sync Docs to Confluence
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Checkout
23+
id: checkout
24+
uses: actions/checkout@v4
25+
26+
- name: Sync Readme
27+
id: sync-readme
28+
uses: ./
29+
with:
30+
mode: flat
31+
docs-dir: '.'
32+
files-pattern: 'README.md'
33+
confluence-url: ${{ vars.CONFLUENCE_URL }}
34+
confluence-root-page-id: ${{ vars.CONFLUENCE_ROOT_PAGE_ID }}
35+
confluence-space-key: ${{ vars.CONFLUENCE_SPACE_KEY }}
36+
confluence-personal-access-token: ${{ secrets.CONFLUENCE_PAT }}

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
---
2+
title: "[Cross] Markdown Confluence Sync"
3+
sync_to_confluence: true
4+
confluence_page_id: 333418648
5+
---
6+
17
# Markdown Confluence Sync action
28

39
This action syncs markdown files to Confluence using the [Markdown Confluence Sync](https://github.com/Telefonica/cross-confluence-tools/tree/main/components/markdown-confluence-sync) library.

0 commit comments

Comments
 (0)