From c2ae96e610fbd07f6b70542f5b3c498f7f178784 Mon Sep 17 00:00:00 2001 From: mashehu Date: Thu, 9 May 2024 12:14:55 +0200 Subject: [PATCH 1/3] run sync on self-hosted runners on release --- .github/workflows/sync.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 23b05de88a..71193054c7 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -43,7 +43,7 @@ jobs: sync: needs: get-pipelines # use the runner given by the input if it is dispatched manually, run on github if it is a rerun or on self-hosted by default - runs-on: ${{ github.event.inputs.runners || github.run_number > 1 && 'ubuntu-latest' || 'self-hosted' }} + runs-on: ${{ github.event.inputs.runners || github.run_number > 1 && 'ubuntu-latest' || 'self-hosted' || github.event_name == 'release' && 'self-hosted' }} strategy: matrix: ${{fromJson(needs.get-pipelines.outputs.matrix)}} fail-fast: false From 39ce3e79ba6fe5643aa0c3f5b17a29829f828927 Mon Sep 17 00:00:00 2001 From: mashehu Date: Thu, 9 May 2024 12:18:36 +0200 Subject: [PATCH 2/3] update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe1252d243..d9df5e55ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ ### General - Fix update github action for components in pipeline template ([#2968](https://github.com/nf-core/tools/pull/2968)) +- Run sync after release on self hosted runners ([#2970](https://github.com/nf-core/tools/pull/2970)) ## [v2.14.0 - Tantalum Toad](https://github.com/nf-core/tools/releases/tag/2.14.0) - [2024-05-08] From 1d147ccb8968263532148047fb93ce5fd2c8616c Mon Sep 17 00:00:00 2001 From: mashehu Date: Thu, 9 May 2024 13:16:27 +0200 Subject: [PATCH 3/3] check first for release trigger --- .github/workflows/sync.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 71193054c7..55880e8130 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -42,8 +42,8 @@ jobs: sync: needs: get-pipelines - # use the runner given by the input if it is dispatched manually, run on github if it is a rerun or on self-hosted by default - runs-on: ${{ github.event.inputs.runners || github.run_number > 1 && 'ubuntu-latest' || 'self-hosted' || github.event_name == 'release' && 'self-hosted' }} + # use the github runner on release otherwise use the runner given by the input if it is dispatched manually, run on github if it is a rerun or on self-hosted by default + runs-on: ${{github.event_name == 'release' && 'self-hosted' || github.event.inputs.runners || github.run_number > 1 && 'ubuntu-latest' || 'self-hosted' }} strategy: matrix: ${{fromJson(needs.get-pipelines.outputs.matrix)}} fail-fast: false