Skip to content

Commit e85e480

Browse files
authored
Workflow fixes
- Use a current, maintained version of `actions/setup-python` - Use branch pattern matching so we don't have to update the action for each new version branch (see https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#filter-pattern-cheat-sheet)
1 parent c305cab commit e85e480

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/pr-checks.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: PR checks
33
on:
44
pull_request:
55
push:
6-
branches: [master, main, 2.0]
6+
branches: [master, main, 'v?[0-9]+.[0-9]+**']
77
jobs:
88
linting:
99
name: Check Yamllint
@@ -15,7 +15,7 @@ jobs:
1515
ref: ${{ github.event.pull_request.head.ref }}
1616
repository: ${{ github.event.pull_request.head.repo.full_name }}
1717
- name: Set up Python 3.13
18-
uses: actions/setup-python@v2
18+
uses: actions/setup-python@v6
1919
with:
2020
python-version: '3.13'
2121
- name: Install deps
@@ -36,7 +36,7 @@ jobs:
3636
ref: ${{ github.event.pull_request.head.ref }}
3737
repository: ${{ github.event.pull_request.head.repo.full_name }}
3838
- name: Set up Python 3.13
39-
uses: actions/setup-python@v2
39+
uses: actions/setup-python@v6
4040
with:
4141
python-version: '3.13'
4242
- name: Install deps

0 commit comments

Comments
 (0)