-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (35 loc) · 1010 Bytes
/
sync.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Update Vendor Sources
on:
schedule:
- cron: '42 6 * * 2'
workflow_dispatch:
env:
MINIMUM_PYTHON_VERSION: "3.8"
jobs:
sync:
name: Update Vendor Sources
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Install Python ${{ env.MINIMUM_PYTHON_VERSION }}
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install pre-commit and dev dependencies
run: |
python -m pip install pre-commit poetry
pre-commit install
poetry install
- name: Update Vendor Sources
run: poetry run python ./scripts/update_vendor.py
- name: Run black
run: poetry run black .
- name: Run pre-commit
run: pre-commit run -a
continue-on-error: true
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Automated vendor update