Skip to content

Commit 4210214

Browse files
committed
ci: Remove DEFAULT_UBUNTU_VERSION
`runs-on` can't use `env`, so there is no point in defining this. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 2d5dd37 commit 4210214

File tree

1 file changed

+7
-6
lines changed
  • cookiecutter/{{cookiecutter.github_repo_name}}/.github/workflows

1 file changed

+7
-6
lines changed

cookiecutter/{{cookiecutter.github_repo_name}}/.github/workflows/ci.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ on:
1616
workflow_dispatch:
1717

1818
env:
19-
# Please make sure these versions are included in the `matrix`, as the
20-
# `matrix` section can't use `env`, so they must be entered manually
19+
# Please make sure this version is included in the `matrix`, as the
20+
# `matrix` section can't use `env`, so it must be entered manually
2121
DEFAULT_PYTHON_VERSION: '3.11'
22-
DEFAULT_UBUNTU_VERSION: '20.04'
22+
# It would be nice to be able to also define a DEFAULT_UBUNTU_VERSION
23+
# but sadly `env` can't be used either in `runs-on`.
2324

2425
jobs:
2526
nox:
@@ -56,7 +57,7 @@ jobs:
5657

5758
build:
5859
name: Build distribution packages
59-
runs-on: ubuntu-{{'${{ env.DEFAULT_UBUNTU_VERSION }}'}}
60+
runs-on: ubuntu-20.04
6061
steps:
6162
- name: Fetch sources
6263
uses: actions/checkout@v3
@@ -92,7 +93,7 @@ jobs:
9293
# discussions to create the release announcement in the discussion forums
9394
contents: write
9495
discussions: write
95-
runs-on: ubuntu-{{'${{ env.DEFAULT_UBUNTU_VERSION }}'}}
96+
runs-on: ubuntu-20.04
9697
steps:
9798
- name: Download distribution files
9899
uses: actions/download-artifact@v3
@@ -134,7 +135,7 @@ jobs:
134135
publish-to-pypi:
135136
name: Publish packages to PyPI
136137
needs: ["create-github-release"]
137-
runs-on: ubuntu-{{'${{ env.DEFAULT_UBUNTU_VERSION }}'}}
138+
runs-on: ubuntu-20.04
138139
permissions:
139140
# For trusted publishing. See:
140141
# https://blog.pypi.org/posts/2023-04-20-introducing-trusted-publishers/

0 commit comments

Comments
 (0)