Update Cache #129
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' }} | |