-
Notifications
You must be signed in to change notification settings - Fork 3
58 lines (53 loc) · 1.62 KB
/
update.yaml
File metadata and controls
58 lines (53 loc) · 1.62 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Update scene exceptions
on:
workflow_dispatch:
schedule:
- cron: '5 0,4,10,16 * * *'
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: main
- uses: actions/setup-python@v2
with:
python-version: 3.9.x
- name: Restore virtualenv
if: success() && !env.ACT
uses: actions/cache@v2
with:
path: .venv
key: virtualenv-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
virtualenv-
- name: Restore pip cache
if: success() && !env.ACT
uses: actions/cache@v2
with:
path: $(python -m pip cache dir)
key: pip-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
pip-
- name: Set up poetry
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: 1.1.8
- name: Run exception updater.
run: |
pip install poethepoet
poetry install
poe poetry_update
git push origin :update-scene-exceptions || /bin/true
git checkout -b update-scene-exceptions
poe run
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update scene exceptions
branch: update-scene-exceptions
commit_options: '--no-verify --signoff'
status_options: '--untracked-files=no'
# Optional commit user and author settings
commit_user_name: miigotu
commit_user_email: miigotu@gmail.com
commit_author: miigotu <miigotu@gmail.com>