You've already forked library-registry
mirror of
https://github.com/arduino/library-registry.git
synced 2025-07-29 14:01:15 +03:00
Use workflow variables for tool versions in "Check YAML" 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.
This commit is contained in:
6
.github/workflows/check-yaml-task.yml
vendored
6
.github/workflows/check-yaml-task.yml
vendored
@ -1,6 +1,10 @@
|
|||||||
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-yaml-task.md
|
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-yaml-task.md
|
||||||
name: Check YAML
|
name: Check YAML
|
||||||
|
|
||||||
|
env:
|
||||||
|
# See: https://github.com/actions/setup-python/tree/v2#available-versions-of-python
|
||||||
|
PYTHON_VERSION: "3.9"
|
||||||
|
|
||||||
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
|
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -65,7 +69,7 @@ jobs:
|
|||||||
- name: Install Python
|
- name: Install Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: "3.9"
|
python-version: ${{ env.PYTHON_VERSION }}
|
||||||
|
|
||||||
- name: Install Poetry
|
- name: Install Poetry
|
||||||
run: pip install poetry
|
run: pip install poetry
|
||||||
|
Reference in New Issue
Block a user