From 0a1c10663a67bc5a1434a92113d9c017052011f7 Mon Sep 17 00:00:00 2001 From: "Fabian H." <73600109+teutoburg@users.noreply.github.com> Date: Fri, 6 Feb 2026 12:04:09 +0100 Subject: [PATCH 1/5] Run main script also on PR --- .github/workflows/download_data.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/download_data.yml b/.github/workflows/download_data.yml index e644e06..5fe21d5 100644 --- a/.github/workflows/download_data.yml +++ b/.github/workflows/download_data.yml @@ -1,6 +1,10 @@ name: Download data required by ScopeSim on: + pull_request: + branches: + - main + schedule: # Run every day at 6:00 UTC - cron: "0 6 * * *" From 320baf0d3cf1c2996a58d011ce13f3bcf5491980 Mon Sep 17 00:00:00 2001 From: "Fabian H." <73600109+teutoburg@users.noreply.github.com> Date: Fri, 6 Feb 2026 13:44:59 +0100 Subject: [PATCH 2/5] Only run on non-draft PRs --- .github/workflows/download_data.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/download_data.yml b/.github/workflows/download_data.yml index 5fe21d5..e027b15 100644 --- a/.github/workflows/download_data.yml +++ b/.github/workflows/download_data.yml @@ -3,7 +3,12 @@ name: Download data required by ScopeSim on: pull_request: branches: - - main + - dev_master + types: + - opened + - synchronize + - reopened + - ready_for_review schedule: # Run every day at 6:00 UTC @@ -15,6 +20,7 @@ on: jobs: download_data: runs-on: ubuntu-latest + if: ${{ !github.event.pull_request.draft }} timeout-minutes: 180 steps: - uses: actions/checkout@v6 From 355ebeab5a4f2ccb5058d41e96984cf19149f040 Mon Sep 17 00:00:00 2001 From: "Fabian H." <73600109+teutoburg@users.noreply.github.com> Date: Fri, 6 Feb 2026 13:50:11 +0100 Subject: [PATCH 3/5] Don't run Slack bot on PR trigger --- .github/workflows/download_data.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/download_data.yml b/.github/workflows/download_data.yml index e027b15..dd02c20 100644 --- a/.github/workflows/download_data.yml +++ b/.github/workflows/download_data.yml @@ -52,7 +52,7 @@ jobs: on-failure: runs-on: ubuntu-latest - if: ${{ always() && (needs.download_data.result == 'failure' || needs.download_data.result == 'timed_out') }} + if: ${{ always() && (needs.download_data.result == 'failure' || needs.download_data.result == 'timed_out') && !(github.event_name == 'pull_request') }} needs: - download_data steps: From 8248c963b26cc803dd60401e94ae5f4bec08770f Mon Sep 17 00:00:00 2001 From: "Fabian H." <73600109+teutoburg@users.noreply.github.com> Date: Fri, 6 Feb 2026 13:52:15 +0100 Subject: [PATCH 4/5] Fix branch name Blindly copy-pasted from IRDB..... --- .github/workflows/download_data.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/download_data.yml b/.github/workflows/download_data.yml index dd02c20..c72bc2f 100644 --- a/.github/workflows/download_data.yml +++ b/.github/workflows/download_data.yml @@ -3,7 +3,7 @@ name: Download data required by ScopeSim on: pull_request: branches: - - dev_master + - main types: - opened - synchronize From 0478682fa2ae50359adff4a61642b3ac652b517e Mon Sep 17 00:00:00 2001 From: "Fabian H." <73600109+teutoburg@users.noreply.github.com> Date: Fri, 6 Feb 2026 15:47:05 +0100 Subject: [PATCH 5/5] Don't run main script on auto PR The automated PR already has a unique label, so can just use that to avoid the risk of eternal loops... --- .github/workflows/download_data.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/download_data.yml b/.github/workflows/download_data.yml index c72bc2f..3fc1df2 100644 --- a/.github/workflows/download_data.yml +++ b/.github/workflows/download_data.yml @@ -20,7 +20,7 @@ on: jobs: download_data: runs-on: ubuntu-latest - if: ${{ !github.event.pull_request.draft }} + if: ${{ !github.event.pull_request.draft && !contains(github.event.pull_request.labels.*.name, 'automated')}} timeout-minutes: 180 steps: - uses: actions/checkout@v6