forked from kudryk/dbt-postgres-python
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.14 KB
/
poetry_lock.yml
File metadata and controls
46 lines (37 loc) · 1.14 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
name: Check Poetry Lock
on:
pull_request:
types: [assigned, opened, synchronize, reopened]
paths:
- "projects/adapter/pyproject.toml"
- "projects/adapter/poetry.lock"
- ".github/workflows/poetry_lock.yml"
jobs:
run:
runs-on: ubuntu-latest
strategy:
fail-fast: false
# Run only the latest commit pushed to PR
concurrency:
group: "${{ github.head_ref || github.run_id }}-${{ github.workflow }}"
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.head_ref }}
- uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install poetry
shell: bash
run: pip install poetry==1.5.*
- name: Check poetry lock
working-directory: "projects/adapter"
run: poetry lock --no-update
- name: Pull Remote Changes
run: git pull
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Poetry lock updated
commit_user_email: [email protected]