1616 python-version : ["3.12"]
1717 os : [ubuntu-latest]
1818 steps :
19- - uses : actions/checkout@v4
19+ - uses : actions/checkout@v5
2020 - name : Set up Python ${{ matrix.python-version }}
21- uses : actions/setup-python@v5
21+ uses : actions/setup-python@v6
2222 with :
2323 python-version : ${{ matrix.python-version }}
2424 - name : Install tox
@@ -33,11 +33,11 @@ jobs:
3333 runs-on : ubuntu-latest
3434 steps :
3535 - name : Check out Git repository
36- uses : actions/checkout@v4
36+ uses : actions/checkout@v5
3737 with :
3838 fetch-depth : 0
3939 - name : Set up Python ${{ matrix.python-version }}
40- uses : actions/setup-python@v5
40+ uses : actions/setup-python@v6
4141 with :
4242 python-version : " 3.12"
4343 - name : Install dependencies
@@ -51,30 +51,36 @@ jobs:
5151 TARGET_VERSION : ${{ github.ref_name }}
5252 - name : Check version tag
5353 run : |
54- python -m docs.compatibility.versioning --gh-version ${{ github.ref_name }} \
55- --gh-token ${{ secrets.GITHUB_TOKEN }} --major-bump-disallowed
54+ # Get last version tag
55+ LAST_VERSION=$(bo4e repo versions -qcn 1 -r ${{ github.ref_name }})
56+ bo4e pull -t $LAST_VERSION -o tmp/last_schemas
57+ bo4e diff schemas tmp/last_schemas json_schemas -o tmp/diff.json
58+ bo4e diff version-bump tmp/diff.json -aq
5659 json_schemas :
5760 name : Generate JSON-Schemas
5861 runs-on : ubuntu-latest
5962 needs : [tests, check_version_tag]
6063 concurrency : build-n-publish-json-schemas
6164 steps :
6265 - name : Check out Git repository
63- uses : actions/checkout@v4
66+ uses : actions/checkout@v5
6467 - name : Set up Python ${{ matrix.python-version }}
65- uses : actions/setup-python@v5
68+ uses : actions/setup-python@v6
6669 with :
6770 python-version : " 3.12"
6871 - name : Install tox
6972 run : |
7073 python -m pip install --upgrade pip
7174 pip install tox
7275 - name : Build JSON Schemas
73- run : tox -e generate_json_schemas
76+ run : |
77+ tox -e generate_json_schemas
78+ # Remove .version file as we don't want to commit it to BO4E-Schemas
79+ rm json_schemas/.version
7480 env :
7581 TARGET_VERSION : ${{ github.ref_name }}
7682 - name : Push schemas to BO4E-Schemas repo
77- uses : cpina/github-action-push-to-another-repository@v1.7.2
83+ uses : cpina/github-action-push-to-another-repository@v1.7.3
7884 env :
7985 API_TOKEN_GITHUB : ${{ secrets.BO4E_PYTHON_GENERATE_SCHEMAS }} # this token expires on 2024-10-09
8086 # token with repo scope
@@ -107,11 +113,11 @@ jobs:
107113 needs : [tests, check_version_tag]
108114 concurrency : build-n-publish-docs
109115 steps :
110- - uses : actions/checkout@v4
116+ - uses : actions/checkout@v5
111117 with :
112118 fetch-depth : 0 # otherwise, you will fail to push refs to dest repo
113119 - name : Set up Python
114- uses : actions/setup-python@v5
120+ uses : actions/setup-python@v6
115121 with :
116122 python-version : " 3.12"
117123 - name : Install dependencies
@@ -177,9 +183,9 @@ jobs:
177183 needs : [tests, json_schemas, docs]
178184 concurrency : build-n-publish-distributions
179185 steps :
180- - uses : actions/checkout@v4
186+ - uses : actions/checkout@v5
181187 - name : Set up Python
182- uses : actions/setup-python@v5
188+ uses : actions/setup-python@v6
183189 with :
184190 python-version : " 3.10.x"
185191 - name : Install dependencies
0 commit comments