Skip to content

Commit 7ecfec9

Browse files
committed
Fix CI mkdocs related jobs not to use env
There are 2 issues: 1. The `env` variable being used doesn't exist. 2. Using `env` is not supported in `runs-on`. This fix was done in the past but was not ported to the branch that implemented `mkdocs`, so it slipped in again. Signed-off-by: Leandro Lucarella <[email protected]> # # On branch fix-ci # Changes to be committed: # modified: cookiecutter/{{cookiecutter.github_repo_name}}/.github/workflows/ci.yaml # # Untracked files: # frequenz-repo-config-python/ # src/frequenz/repo-config/ # tests/test_repo-config.py #
1 parent f21edf2 commit 7ecfec9

File tree

2 files changed

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

2 files changed

+4
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
test-docs:
8787
name: Test documentation website generation
8888
if: github.event_name != 'push'
89-
runs-on: ubuntu-${{ env.DEFAULT_UBUNTU_VERSION }}
89+
runs-on: ubuntu-20.04
9090
steps:
9191
- name: Fetch sources
9292
uses: actions/checkout@v3
@@ -123,7 +123,7 @@ jobs:
123123
name: Publish documentation website to GitHub pages
124124
needs: ["test", "build"]
125125
if: github.event_name == 'push'
126-
runs-on: ubuntu-${{ env.DEFAULT_UBUNTU_VERSION }}
126+
runs-on: ubuntu-20.04
127127
permissions:
128128
contents: write
129129
steps:

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
test-docs:
8787
name: Test documentation website generation
8888
if: github.event_name != 'push'
89-
runs-on: ubuntu-{{'${{ env.DEFAULT_UBUNTU_VERSION }}'}}
89+
runs-on: ubuntu-20.04
9090
steps:
9191
- name: Fetch sources
9292
uses: actions/checkout@v3
@@ -123,7 +123,7 @@ jobs:
123123
name: Publish documentation website to GitHub pages
124124
needs: ["test", "build"]
125125
if: github.event_name == 'push'
126-
runs-on: ubuntu-{{'${{ env.DEFAULT_UBUNTU_VERSION }}'}}
126+
runs-on: ubuntu-20.04
127127
permissions:
128128
contents: write
129129
steps:

0 commit comments

Comments
 (0)