Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,31 @@ jobs:
git config --global init.defaultBranch $defaultBranch

- name: Run synchronisation
id: sync
if: github.repository == 'nf-core/tools'
continue-on-error: true
env:
GITHUB_AUTH_TOKEN: ${{ secrets.nf_core_bot_auth_token }}
run: |
git config --global user.email "core@nf-co.re"
git config --global user.name "nf-core-bot"
uv run nf-core --log-file sync_log_${{ matrix.pipeline }}.txt \
${{ github.event.inputs.debug == 'true' && '--verbose' || '' }} \
pipelines sync -d nf-core/${{ matrix.pipeline }} \
--from-branch dev \
--pull-request \
--username nf-core-bot \
--github-repository nf-core/${{ matrix.pipeline }} \
--blog-post ${{inputs.blog_post}}

- name: Install newer Nextflow (retry fallback)
if: github.repository == 'nf-core/tools' && steps.sync.outcome == 'failure'
uses: nf-core/setup-nextflow@893c28b667aedeba26e37f296d260ccc5bc4d914 # v3
with:
version: "26.04.6"

- name: Retry synchronisation with newer Nextflow
if: github.repository == 'nf-core/tools' && steps.sync.outcome == 'failure'
env:
GITHUB_AUTH_TOKEN: ${{ secrets.nf_core_bot_auth_token }}
run: |
Expand Down
7 changes: 6 additions & 1 deletion nf_core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,12 @@ def fetch_wf_config(wf_path: Path, cache_config: bool = True) -> dict:
log.debug("No config cache found")

# Call `nextflow config`
result = run_cmd("nextflow", f"config -o json {wf_path}")
try:
result = run_cmd("nextflow", f"config -o json {wf_path}")
except RuntimeError as e:
raise UserWarning(
f"Could not parse Nextflow config for '{wf_path}'. Possibly because of a Nextflow version mismatch?\n{e}"
) from e
if result is not None:
nfconfig_raw, _ = result
try:
Expand Down
Loading