From 717f3486cf8760972110b66b4d4b9a779cc7d513 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brigitta=20Sip=C5=91cz?= Date: Mon, 13 Jul 2026 11:16:47 -0700 Subject: [PATCH 1/3] Using unique cache keys --- .github/workflows/ci_publish.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci_publish.yml b/.github/workflows/ci_publish.yml index 988246ac..77fefe2a 100644 --- a/.github/workflows/ci_publish.yml +++ b/.github/workflows/ci_publish.yml @@ -41,7 +41,9 @@ jobs: uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: _build/execute - key: JB-output + key: JB-output-${{ github.run_id }} + kestore-keys: | + JB-output- - name: Execute notebooks while building HTMLs run: tox -e py312-buildhtml From 9d3255916067d7da7b2514d88d7018f13434ff20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brigitta=20Sip=C5=91cz?= Date: Mon, 13 Jul 2026 11:27:29 -0700 Subject: [PATCH 2/3] Scheduling weekly cache use, ideally the job will be quick as it reuses the existing cache --- .github/workflows/ci_publish.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci_publish.yml b/.github/workflows/ci_publish.yml index 77fefe2a..5ff84f02 100644 --- a/.github/workflows/ci_publish.yml +++ b/.github/workflows/ci_publish.yml @@ -4,6 +4,8 @@ on: push: branches: - main + schedule: + - cron: '0 8 * * 5' workflow_dispatch: concurrency: @@ -20,7 +22,6 @@ jobs: publish_html: if: >- - (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main' && github.repository == 'Caltech-IPAC/irsa-tutorials' @@ -37,7 +38,9 @@ jobs: - name: Install dependencies run: python -m pip install --upgrade tox + # We use the cache conditionally dependencing on the trigger event, keep it read only for cron - name: Using execution-output cache + if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch') uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: _build/execute @@ -45,6 +48,14 @@ jobs: kestore-keys: | JB-output- + - name: Using execution-output cache for cron + if: (github.event_name == 'schedule' )) + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + with: + path: _build/execute + kestore-keys: | + JB-output- + - name: Execute notebooks while building HTMLs run: tox -e py312-buildhtml @@ -57,6 +68,7 @@ jobs: path: ./_build - name: Publish + if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch') uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} From c00f27322a1e8f6ce1b7d7a678345441b78da0c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brigitta=20Sip=C5=91cz?= Date: Tue, 14 Jul 2026 09:23:05 -0700 Subject: [PATCH 3/3] Typo --- .github/workflows/ci_publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_publish.yml b/.github/workflows/ci_publish.yml index 5ff84f02..2053ad41 100644 --- a/.github/workflows/ci_publish.yml +++ b/.github/workflows/ci_publish.yml @@ -49,7 +49,7 @@ jobs: JB-output- - name: Using execution-output cache for cron - if: (github.event_name == 'schedule' )) + if: (github.event_name == 'schedule' ) uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: _build/execute