Update Cache #407
This file contains hidden or 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: | |
| pull_request: {} | |
| 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 requests beautifulsoup4 | |
| - name: Derive BioContainers List | |
| run: | | |
| export PATH="/usr/share/miniconda/bin:$PATH" | |
| conda run -n shpc pip install -r .github/scripts/dev-requirements.txt | |
| conda run -n shpc 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' }} |