diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 23b05de88a..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' }} + # 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 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]