Skip to content

Commit 17fe4a0

Browse files
authored
Merge pull request #2 from maykinmedia/feature/add-check-oaf-script
👷 add check oaf script
2 parents d580306 + 5316d20 commit 17fe4a0

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/oaf-check.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: open-api-workflow oaf-check
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
python-version:
7+
type: string
8+
required: true
9+
10+
jobs:
11+
oaf-up-to-date:
12+
name: Check for new OAF version
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-python@v5
18+
with:
19+
python-version: ${{ inputs.python-version }}
20+
cache: 'pip'
21+
cache-dependency-path: 'requirements/dev.txt'
22+
- name: Install dependencies
23+
run: pip install $(grep "pip-tools==" requirements/dev.txt)
24+
- name: Run compile dependencies
25+
run: ./bin/compile_dependencies.sh --upgrade-package open-api-framework
26+
27+
- name: Check git diff
28+
run: git diff --exit-code -- requirements/*.txt

0 commit comments

Comments
 (0)