From f006ae40c32ff107a9f3d23d7938fd36168ee300 Mon Sep 17 00:00:00 2001 From: Avnish Pratap Singh Date: Fri, 19 Jul 2024 22:23:50 +0100 Subject: [PATCH] Automatic confluence update --- .gitlab-ci.yml | 34 +++++++++++++++++++++++++++++++ Changes | 3 +++ docs/CtoA_substitution_metrics.md | 17 ++++++++++++++++ docs/includes/repo-metadata.md | 1 + docs/qc_outcomes_change_howto.md | 17 ++++++++++++++++ 5 files changed, 72 insertions(+) create mode 100644 .gitlab-ci.yml create mode 100644 docs/includes/repo-metadata.md diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..b7be5cc4 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,34 @@ +stages: + - generate + - publish + +generate-job: + stage: generate + tags: + - autoscale + rules: + - if: $CI_COMMIT_BRANCH == "devel" || $CI_COMMIT_BRANCH == "master" + changes: + - docs/**/* + variables: + REPO_METADATA_FILE: docs/includes/repo-metadata.md + script: > + echo "Created from: [$CI_PROJECT_NAMESPACE / $CI_PROJECT_TITLE]($CI_PROJECT_URL) Version: $(git describe --always)" > "$REPO_METADATA_FILE" + artifacts: + paths: + - "$REPO_METADATA_FILE" + +mark-job: + stage: publish + rules: + - if: $CI_COMMIT_BRANCH == "devel" || $CI_COMMIT_BRANCH == "master" + changes: + - docs/**/* + image: wsinpg/mark:latest + tags: + - autoscale + script: > + for f in $(find . -name includes -type d -prune -o -name 'README*.md' -prune -o -name '*.md' -print0 | xargs -0); do + echo 'username = ""' && echo "password = '$CONFLUENCE_PERSONAL_ACCESS_TOKEN'" | + mark -c /dev/stdin -b https://ssg-confluence.internal.sanger.ac.uk -f "$f" --trace + done diff --git a/Changes b/Changes index e2d6ed0e..bb06eeac 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,8 @@ LIST OF CHANGES FOR NPG-QC PACKAGE + - docs + - automated creation/update of confluence pages for docs + release 72.1.1 (2024-05-24) - Removing Tidyp dependency from CI diff --git a/docs/CtoA_substitution_metrics.md b/docs/CtoA_substitution_metrics.md index e9f0ede0..2282fbda 100644 --- a/docs/CtoA_substitution_metrics.md +++ b/docs/CtoA_substitution_metrics.md @@ -1,3 +1,20 @@ + + + + + + +:box:info:Note:This page is automatically generated; any edits will be overwritten: + +###### Repository information + + + # C->A short read sequencing substitution metrics - Author - Irina Abnizova diff --git a/docs/includes/repo-metadata.md b/docs/includes/repo-metadata.md new file mode 100644 index 00000000..e8cc8a76 --- /dev/null +++ b/docs/includes/repo-metadata.md @@ -0,0 +1 @@ +Created from: - Version: - \ No newline at end of file diff --git a/docs/qc_outcomes_change_howto.md b/docs/qc_outcomes_change_howto.md index b7a8b245..ce496547 100644 --- a/docs/qc_outcomes_change_howto.md +++ b/docs/qc_outcomes_change_howto.md @@ -1,3 +1,20 @@ + + + + + + +:box:info:Note:This page is automatically generated; any edits will be overwritten: + +###### Repository information + + + # Guidance for Changing QC Outcomes - Use the correct RT ticket number.