You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## This PR is against the \`${BASE_REF}\` branch :x:
28
38
29
-
* Do not close this PR
30
-
* Click _Edit_ and change the `base` to `dev`
31
-
* This CI test will remain failed until you push a new commit
39
+
* Do not close this PR
40
+
* Click _Edit_ and change the \`base\` to \`dev\`
41
+
* This CI test will remain failed until you push a new commit
32
42
33
-
---
43
+
---
34
44
35
-
Hi @${{ github.event.pull_request.user.login }},
45
+
Hi @${PR_USER},
36
46
37
-
It looks like this pull-request is has been made against the [${{github.event.pull_request.head.repo.full_name }}](https://github.com/${{github.event.pull_request.head.repo.full_name }}) ${{github.event.pull_request.base.ref}} branch.
38
-
The ${{github.event.pull_request.base.ref}} branch on nf-core repositories should always contain code from the latest release.
39
-
Because of this, PRs to ${{github.event.pull_request.base.ref}} are only allowed if they come from the [${{github.event.pull_request.head.repo.full_name }}](https://github.com/${{github.event.pull_request.head.repo.full_name }}) `dev` branch.
47
+
It looks like this pull-request is has been made against the [${HEAD_REPO}](https://github.com/${HEAD_REPO}) ${BASE_REF} branch.
48
+
The ${BASE_REF} branch on nf-core repositories should always contain code from the latest release.
49
+
Because of this, PRs to ${BASE_REF} are only allowed if they come from the [${HEAD_REPO}](https://github.com/${HEAD_REPO}) \`dev\` branch.
40
50
41
-
You do not need to close this PR, you can change the target branch to `dev` by clicking the _"Edit"_ button at the top of this page.
42
-
Note that even after this, the test will continue to show as failing until you push a new commit.
51
+
You do not need to close this PR, you can change the target branch to \`dev\` by clicking the _"Edit"_ button at the top of this page.
52
+
Note that even after this, the test will continue to show as failing until you push a new commit.
latest_version=$(nf-core --version | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -n1)
26
43
27
-
- name: Check nf-core outdated
28
-
id: nf_core_outdated
29
-
run: echo "OUTPUT=$(pip list --outdated | grep nf-core)" >> ${GITHUB_ENV}
44
+
if [ -n "$PR_VERSION" ] && [ -n "$latest_version" ] && [ "$PR_VERSION" != "$latest_version" ]; then
45
+
cat > pr-comment/comment.md <<EOF
46
+
> [!WARNING]
47
+
> Newer version of the nf-core template is available.
48
+
>
49
+
> Your pipeline is using an old version of the nf-core template: ${PR_VERSION}.
50
+
> Please update your pipeline to the latest version.
51
+
>
52
+
> For more documentation on how to update your pipeline, please see the [Synchronisation documentation](https://nf-co.re/docs/developing/template-syncs/overview).
> Newer version of the nf-core template is available.
41
-
>
42
-
> Your pipeline is using an old version of the nf-core template: ${{ steps.read_yml.outputs['nf_core_version'] }}.
43
-
> Please update your pipeline to the latest version.
44
-
>
45
-
> For more documentation on how to update your pipeline, please see the [Synchronisation documentation](https://nf-co.re/docs/developing/template-syncs/overview).
0 commit comments