Binder cache warmup #3
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: Binder cache warmup | |
| on: | |
| push: | |
| branches: [ main ] | |
| schedule: | |
| - cron: "0 3 * * 0" # weekly, Sunday 03:00 UTC | |
| workflow_dispatch: | |
| jobs: | |
| warmup: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Trigger mybinder.org build | |
| run: | | |
| set -eux | |
| REF="${{ github.ref_name }}" | |
| if [ -z "$REF" ] || [ "$REF" = "refs/heads/" ]; then REF="main"; fi | |
| curl -LsS -o /dev/null -w "%{http_code}\n" \ | |
| "https://mybinder.org/build/gh/${{ github.repository }}/$REF" || true |