-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (33 loc) · 953 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
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@v3
with:
ref: ${{ github.head_ref }}
- name: Install Python ${{ env.MINIMUM_PYTHON_VERSION }}
uses: actions/setup-python@v4
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 pre-commit
run: pre-commit run -a
continue-on-error: true
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Automated vendor update