From 74dd4052eeb049eb1613f1afc410dcf9af0eea2d Mon Sep 17 00:00:00 2001 From: per1234 Date: Wed, 11 Aug 2021 10:51:24 -0700 Subject: [PATCH] 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. --- .github/workflows/check-yaml-task.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-yaml-task.yml b/.github/workflows/check-yaml-task.yml index a17929d8..54b5f871 100644 --- a/.github/workflows/check-yaml-task.yml +++ b/.github/workflows/check-yaml-task.yml @@ -1,6 +1,10 @@ # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-yaml-task.md 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 on: push: @@ -65,7 +69,7 @@ jobs: - name: Install Python uses: actions/setup-python@v2 with: - python-version: "3.9" + python-version: ${{ env.PYTHON_VERSION }} - name: Install Poetry run: pip install poetry