From 759550db476b68ef31427c7cd4e2e11cbf364cb8 Mon Sep 17 00:00:00 2001 From: Jean Cochrane Date: Mon, 20 Nov 2023 13:55:53 -0600 Subject: [PATCH] Revert "Temporarily run delete-model-runs on pull_request event for testing" This reverts commit 09cfa5b4809cd2211c7c6809dc6af2f9363f94de. --- .github/workflows/delete-model-runs.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/delete-model-runs.yaml b/.github/workflows/delete-model-runs.yaml index 67947a94..687b25a6 100644 --- a/.github/workflows/delete-model-runs.yaml +++ b/.github/workflows/delete-model-runs.yaml @@ -7,7 +7,17 @@ name: delete-model-runs on: - pull_request: + workflow_dispatch: + inputs: + run-ids: + description: > + Run IDs: Space-delimited list of IDs of model runs to delete. Note + that the workflow assumes these IDs correspond to model runs for the + current assessment cycle, and if that's not the case the deletion + script will raise an error. + required: true + type: string + default: 2024-01-01-foo-bar 2024-01-02-bar-baz jobs: delete-model-runs: @@ -46,4 +56,4 @@ jobs: run: Rscript ./R/delete_current_year_model_runs.R "${RUN_IDS// /,}" shell: bash env: - RUN_IDS: 2024-01-01-foo-bar 2024-01-02-bar-baz + RUN_IDS: ${{ inputs.run-ids }}