Skip to content

Update Cache

Update Cache #91

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: 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' }}