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

Fix commit cache GH action #4766

Merged
merged 2 commits into from
Mar 4, 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
File renamed without changes.
6 changes: 4 additions & 2 deletions _plugins/gtn/mod.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ def self.generate_cache
File.write("metadata/git-mod-#{rev}.txt", command)
else
prev = discover_caches
File.write("metadata/git-mod-#{rev}.txt", cached_command)
results = cached_command
File.delete(prev)
File.write("metadata/git-mod-#{rev}.txt", results)
end
end

Expand Down Expand Up @@ -147,8 +148,9 @@ def self.generate_cache
File.write("metadata/git-pub-#{rev}.txt", command)
else
prev = discover_caches
File.write("metadata/git-pub-#{rev}.txt", cached_command)
results = cached_command
File.delete(prev)
File.write("metadata/git-pub-#{rev}.txt", results)
end
end

Expand Down
9 changes: 2 additions & 7 deletions bin/commit-cache-update.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
require './_plugins/gtn'
require 'jekyll'
require './_plugins/gtn/mod.rb'

# Write the commit log
Gtn::ModificationTimes.generate_cache
Gtn::PublicationTimes.generate_cache

# Gziped?
# require 'zlib'
# File.write("metadata/git-mod-#{rev}.txt.gz", Zlib.gzip(Gtn::ModificationTimes.command))
# File.write("metadata/git-pub-#{rev}.txt.gz", Zlib.gzip(Gtn::PublicationTimes.command))
# p Gtn::ModificationTimes.discover_caches
Original file line number Diff line number Diff line change
@@ -1,3 +1,135 @@
GTN_GTN:1709543759
GTN_GTN:1709542527
GTN_GTN:1709514490

metadata/shortlinks.yaml
GTN_GTN:1709498003

topics/galaxy-interface/tutorials/galaxy-intro-jupyter/tutorial.md
GTN_GTN:1709213843
GTN_GTN:1709212100

_plugins/jekyll-topic-filter.rb
news/_posts/2024-02-29-new-gmod-topic.md
GTN_GTN:1709211762

bin/schema-topic.yaml
news/_posts/2024-02-29-new-gmod-topic.md
topics/contributing/tutorials/create-new-topic/tutorial.md
GTN_GTN:1709210985

_plugins/jekyll-topic-filter.rb
GTN_GTN:1709210983

metadata/gmod.yaml
GTN_GTN:1709210982

_plugins/jekyll-topic-filter.rb
GTN_GTN:1709210980

_plugins/jekyll-topic-filter.rb
topics/genome-annotation/tutorials/bacterial-genome-annotation/tutorial.md
GTN_GTN:1709210979

_layouts/home.html
GTN_GTN:1709210977

topics/assembly/tutorials/chloroplast-assembly/tutorial.md
topics/genome-annotation/tutorials/bacterial-genome-annotation/tutorial.md
GTN_GTN:1709210975

topics/microbiome/metadata.yaml
GTN_GTN:1709210974

_layouts/home.html
bin/schema-topic.yaml
learning-pathways/clinical-metaproteomics.md
metadata/covid19.yaml
metadata/one-health.yaml
topics/ai4life/metadata.yaml
topics/assembly/metadata.yaml
topics/climate/metadata.yaml
topics/computational-chemistry/metadata.yaml
topics/ecology/metadata.yaml
topics/epigenetics/metadata.yaml
topics/evolution/metadata.yaml
topics/galaxy-interface/tutorials/intermine/tutorial.md
topics/genome-annotation/metadata.yaml
topics/imaging/metadata.yaml
topics/materials-science/metadata.yaml
topics/metabolomics/metadata.yaml
topics/microbiome/metadata.yaml
topics/proteomics/metadata.yaml
topics/sequence-analysis/metadata.yaml
topics/single-cell/metadata.yaml
topics/statistics/metadata.yaml
topics/synthetic-biology/metadata.yaml
topics/transcriptomics/metadata.yaml
topics/variant-analysis/metadata.yaml
topics/visualisation/metadata.yaml
GTN_GTN:1709210972

_plugins/jekyll-topic-filter.rb
topics/genome-annotation/tutorials/official-gene-set/tutorial.md
GTN_GTN:1709210970

_plugins/jekyll-topic-filter.rb
GTN_GTN:1709210969

assets/images/GMOD-cogs.png
topics/genome-annotation/tutorials/annotation-with-maker/tutorial.md
GTN_GTN:1709210967

topics/assembly/tutorials/chloroplast-assembly/tutorial.md
topics/assembly/tutorials/ecoli_comparison/tutorial.md
topics/assembly/tutorials/mrsa-nanopore/tutorial.md
topics/galaxy-interface/tutorials/intermine/tutorial.md
topics/genome-annotation/tutorials/amr-gene-detection/tutorial.md
topics/genome-annotation/tutorials/annotation-with-maker-short/tutorial.md
topics/genome-annotation/tutorials/annotation-with-maker/tutorial.md
topics/genome-annotation/tutorials/annotation-with-prokka/tutorial.md
topics/genome-annotation/tutorials/apollo-euk/tutorial.md
topics/genome-annotation/tutorials/apollo/tutorial.md
topics/genome-annotation/tutorials/bacterial-genome-annotation/tutorial.md
topics/genome-annotation/tutorials/funannotate/tutorial.md
topics/genome-annotation/tutorials/official-gene-set/tutorial.md
topics/sequence-analysis/tutorials/sars-with-galaxy-on-anvil/tutorial.md
topics/variant-analysis/tutorials/microbial-variants/tutorial.md
topics/visualisation/tutorials/jbrowse/tutorial.md
GTN_GTN:1709209808
GTN_GTN:1709209300

short/galaxy.html
GTN_GTN:1709208178

_plugins/gtn.rb
_plugins/gtn/mod.rb
_plugins/jekyll-topic-filter.rb
bin/list-recently-published.rb
GTN_GTN:1709208057

_plugins/gtn/mod.rb
bin/list-recently-modified.rb
bin/list-recently-published.rb
GTN_GTN:1709204321

short/galaxy.html
GTN_GTN:1709204315

_plugins/jekyll-topic-filter.rb
GTN_GTN:1709131243

_plugins/jekyll-topic-filter.rb
GTN_GTN:1709110457

_plugins/jekyll-tool-tag.rb
GTN_GTN:1708960754

.github/workflows/cron-commit-cache.yml
GTN_GTN:1708960469

metadata/git-mod-980e16de5c1d2c6621c3ca488f534da270fab1e2.txt
metadata/git-pub-980e16de5c1d2c6621c3ca488f534da270fab1e2.txt
GTN_GTN:1708960403

.github/workflows/deploy.yml
Expand All @@ -14,6 +146,24 @@ bin/commit-cache-update.rb
GTN_GTN:1708946427

bin/list-recently-modified.rb
GTN_GTN:1708937732
GTN_GTN:1708931575
GTN_GTN:1708930821
GTN_GTN:1708909698

metadata/shortlinks.yaml
GTN_GTN:1708902996

topics/genome-annotation/images/bgc_screening/Selection_111.png
topics/genome-annotation/images/bgc_screening/borrelidin.png
topics/genome-annotation/images/bgc_screening/compound.png
topics/genome-annotation/images/bgc_screening/flowchart.drawio.png
GTN_GTN:1708819484

topics/ecology/tutorials/Metashrimps_tutorial/tutorial.md
GTN_GTN:1708819469

topics/ecology/tutorials/Metashrimps_tutorial/tutorial.md
GTN_GTN:1708601697
GTN_GTN:1708600348

Expand Down Expand Up @@ -145,6 +295,9 @@ assets/images/oembed.png
shared/images/logo-vib.png
topics/single-cell/images/scrna-data/HCA.jpg
topics/single-cell/images/scrna-data/exp_id.jpg
GTN_GTN:1708121008

topics/ecology/tutorials/Metashrimps_tutorial/tutorial.md
GTN_GTN:1708092257

CONTRIBUTORS.yaml
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
GTN_GTN:1709213843

A assets/images/GMOD-cogs.png
A metadata/gmod.yaml
A news/_posts/2024-02-29-new-gmod-topic.md
GTN_GTN:1709209808

A .github/workflows/cron-commit-cache.yml
A bin/commit-cache-update.rb
A bin/list-recently-modified.rb
A bin/list-recently-published.rb
A metadata/git-mod-980e16de5c1d2c6621c3ca488f534da270fab1e2.txt
A metadata/git-pub-980e16de5c1d2c6621c3ca488f534da270fab1e2.txt
GTN_GTN:1708524512

A topics/genome-annotation/images/bgc_screening/Ampicillin_Structural_Formulae_V.1.svg.png
Expand Down
Loading