Skip to content

Commit 525a097

Browse files
authored
Add dry_run input to workflow for optional execution
1 parent 5d7f014 commit 525a097

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/look4updates.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ on:
33
schedule:
44
- cron: "0 0 * * 0" # Run weekly on Sunday at 00:00 UTC
55
workflow_dispatch:
6+
inputs:
7+
dry_run:
8+
description: 'Skip follow-up steps like Zenodo uploads'
9+
required: false
10+
default: 'true'
611

712
jobs:
813
check_release:
@@ -35,11 +40,11 @@ jobs:
3540

3641
follow_up_prompt_creation:
3742
needs: check_release
38-
if: needs.check_release.outputs.new_release == 'true'
43+
if: needs.check_release.outputs.new_release == 'true' && github.event.inputs.dry_run != 'true'
3944
uses: ./.github/workflows/create_prompts_and_upload.yml
4045
with:
4146
LATEST_STORE: ${{ needs.check_release.outputs.latest_store_tag }}
4247
LATEST_HPO: ${{ needs.check_release.outputs.latest_hpo_tag }}
4348
secrets:
4449
ZENODO_ACCESS_TOKEN: ${{ secrets.ZENODO_ACCESS_TOKEN }}
45-
ZENODO_DEPOSITION_ID: ${{ secrets.ZENODO_DEPOSITION_ID }}
50+
ZENODO_DEPOSITION_ID: ${{ secrets.ZENODO_DEPOSITION_ID }}

0 commit comments

Comments
 (0)