Skip to content

Update Cache

Update Cache #226

Workflow file for this run

name: Update Cache
on:
workflow_dispatch:
schedule:
# Weekly, monday and thursday
- cron: 0 0 * * 1,4
jobs:
update-cache:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Create conda environment
run: conda create --quiet -c conda-forge --name shpc spython
- name: Derive BioContainers List
run: |
export PATH="/usr/share/miniconda/bin:$PATH"
source activate shpc
pip install -r .github/scripts/dev-requirements.txt
python .github/scripts/get_biocontainers.py /tmp/biocontainers.txt
head /tmp/biocontainers.txt
- name: Make Space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
# Manual run commands (don't forget to export GITHUB_TOKEN)
# container-discovery update-cache --root . --repo-letter-prefix --namespace quay.io/biocontainers /tmp/biocontainers.txt
# container-discovery update-counts --namespace quay.io/biocontainers --root . --repo-letter-prefix /tmp/biocontainers
- name: Update Cache Action
uses: singularityhub/container-executable-discovery@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
repo-letter-prefix: true
listing: /tmp/biocontainers.txt
namespace: quay.io/biocontainers
dry_run: ${{ github.event_name == 'pull_request' }}