From 4fc51e18e8c47cdb7d3d4533bdad5470ea5e521e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 27 May 2024 23:21:51 +1000 Subject: [PATCH] build(deps): update actions/setup-python action to v5 (#138) * build(deps): update actions/setup-python action to v5 * ci: use `python-version-file` for setup python * ci: only deploy docs on main branch --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Josh Willox --- .github/workflows/docs.yaml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index fa43403..014683f 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -2,6 +2,8 @@ name: "Docs" on: push: + branches: + - "main" paths: - docs/** - mkdocs.yaml @@ -20,14 +22,10 @@ jobs: - name: "Install poetry" run: pipx install poetry - - name: "Get python version" - id: python - run: echo "version=$(yq .tool.poetry.dependencies.python pyproject.toml)" >> "$GITHUB_OUTPUT" - - name: "Setup Python" - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: - python-version: ${{ steps.python.outputs.version }} + python-version-file: "pyproject.toml" cache: "poetry" - name: "Install dependencies"