Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic confluence update #866

Merged
merged 1 commit into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading