Skip to content

Commit

Permalink
Automatic confluence update
Browse files Browse the repository at this point in the history
  • Loading branch information
avnishsinghh committed Jul 22, 2024
1 parent 65fd15e commit f006ae4
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -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

Expand Down
17 changes: 17 additions & 0 deletions docs/CtoA_substitution_metrics.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
<!-- Space: NPG -->
<!-- Parent: NPG QC -->
<!-- Title: C->A short read sequencing substitution metrics -->

<!-- Macro: :box:([^:]+):([^:]*):(.+):
Template: ac:box
Icon: true
Name: ${1}
Title: ${2}
Body: ${3} -->

:box:info:Note:This page is automatically generated; any edits will be overwritten:

###### Repository information

<!-- Include: includes/repo-metadata.md -->

# C->A short read sequencing substitution metrics

- Author - Irina Abnizova
Expand Down
1 change: 1 addition & 0 deletions docs/includes/repo-metadata.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Created from: - Version: -
17 changes: 17 additions & 0 deletions docs/qc_outcomes_change_howto.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
<!-- Space: NPG -->
<!-- Parent: NPG QC -->
<!-- Title: Guidance for Changing QC Outcomes -->

<!-- Macro: :box:([^:]+):([^:]*):(.+):
Template: ac:box
Icon: true
Name: ${1}
Title: ${2}
Body: ${3} -->

:box:info:Note:This page is automatically generated; any edits will be overwritten:

###### Repository information

<!-- Include: includes/repo-metadata.md -->

# Guidance for Changing QC Outcomes

- Use the correct RT ticket number.
Expand Down

0 comments on commit f006ae4

Please sign in to comment.