Skip to content

Commit

Permalink
build(deps): update actions/setup-python action to v5 (#138)
Browse files Browse the repository at this point in the history
* 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 <joshwillox@gmail.com>
  • Loading branch information
renovate[bot] and jcwillox authored May 27, 2024
1 parent e01e86e commit 4fc51e1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: "Docs"

on:
push:
branches:
- "main"
paths:
- docs/**
- mkdocs.yaml
Expand All @@ -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"
Expand Down

0 comments on commit 4fc51e1

Please sign in to comment.