Skip to content

Commit

Permalink
Merge pull request #866 from avnishsinghh/update_confluence
Browse files Browse the repository at this point in the history
Automatic confluence update
  • Loading branch information
jmtcsngr authored Sep 12, 2024
2 parents c2c8a25 + 2a3fcb9 commit 71131ea
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -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
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: Illumina Sequencing -->
<!-- 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: Illumina Sequencing -->
<!-- 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 71131ea

Please sign in to comment.