Skip to content

Commit 8a06ac3

Browse files
committed
Use workflow variables for tool versions in "Check Website" workflow
Placement of this information at the top of the file, where it is easy to find and edit, facilitates updates to the workflows as the tool version used for project development are bumped periodically.
1 parent 7713212 commit 8a06ac3

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/check-mkdocs-task.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-mkdocs-task.md
22
name: Check Website
33

4+
env:
5+
# See: https://github.com/actions/setup-go/tree/v2#readme
6+
GO_VERSION: "1.14"
7+
# See: https://github.com/actions/setup-python/tree/v2#available-versions-of-python
8+
PYTHON_VERSION: "3.9"
9+
410
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
511
on:
612
push:
@@ -37,12 +43,12 @@ jobs:
3743
- name: Install Go
3844
uses: actions/setup-go@v2
3945
with:
40-
go-version: "1.14"
46+
go-version: ${{ env.GO_VERSION }}
4147

4248
- name: Install Python
4349
uses: actions/setup-python@v2
4450
with:
45-
python-version: "3.9"
51+
python-version: ${{ env.PYTHON_VERSION }}
4652

4753
- name: Install Poetry
4854
run: pip install poetry

0 commit comments

Comments
 (0)