From 2a3fcb9be4ac19541425c945b01153cff93c4465 Mon Sep 17 00:00:00 2001 From: Avnish Pratap Singh Date: Thu, 12 Sep 2024 12:22:14 +0100 Subject: [PATCH] Automatic confluence update --- .gitlab-ci.yml | 33 +++++++++++++++++++++++++++++++ Changes | 2 ++ docs/CtoA_substitution_metrics.md | 17 ++++++++++++++++ docs/includes/repo-metadata.md | 1 + docs/qc_outcomes_change_howto.md | 17 ++++++++++++++++ 5 files changed, 70 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..c01c624a --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,33 @@ +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 9e2a5ee3..d11510e4 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,8 @@ LIST OF CHANGES FOR NPG-QC PACKAGE - GitHub CI - updated deprecated v2 runner action to v3 + - docs + - automated creation/update of confluence pages for docs - Following a release on 07/09/2024, see https://metacpan.org/dist/App-perlbrew/changes the checksum of the script served by https://install.perlbrew.pl had changed. https://install.perlbrew.pl is a redirect to raw diff --git a/docs/CtoA_substitution_metrics.md b/docs/CtoA_substitution_metrics.md index e9f0ede0..d952b6f4 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 8c474dda..d1e732a1 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.