PLBA2-3. Правки CI воркфлоу
PLBA package CI / Python tests (push) Successful in 20s
PLBA package CI / Package version increment (push) Skipped

This commit is contained in:
2026-10-10 21:53:18 +03:00
parent d517820088
commit a0d2db6bd0
+26 -5
View File
@@ -13,7 +13,17 @@ jobs:
runs-on: cloud-build runs-on: cloud-build
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@v4 env:
GITEA_SERVER_URL: ${{ gitea.server_url }}
GITEA_REPOSITORY: ${{ gitea.repository }}
GITEA_REF: ${{ gitea.ref }}
run: |
set -eu
repository_url="${GITEA_SERVER_URL%/}/${GITEA_REPOSITORY}.git"
git init .
git remote add origin "$repository_url"
git fetch --no-tags --depth=1 origin "$GITEA_REF"
git checkout --detach FETCH_HEAD
- name: Check Python version - name: Check Python version
run: | run: |
@@ -39,13 +49,24 @@ jobs:
runs-on: cloud-build runs-on: cloud-build
steps: steps:
- name: Check out repository and target branch history - name: Check out repository and target branch history
uses: actions/checkout@v4 env:
with: GITEA_SERVER_URL: ${{ gitea.server_url }}
fetch-depth: 0 GITEA_REPOSITORY: ${{ gitea.repository }}
GITEA_REF: ${{ gitea.ref }}
BASE_REF: ${{ gitea.base_ref }}
run: |
set -eu
test -n "$BASE_REF"
repository_url="${GITEA_SERVER_URL%/}/${GITEA_REPOSITORY}.git"
git init .
git remote add origin "$repository_url"
git fetch --no-tags --depth=1 origin "$GITEA_REF"
git checkout --detach FETCH_HEAD
git fetch --no-tags --depth=1 origin "refs/heads/${BASE_REF}:refs/remotes/origin/${BASE_REF}"
- name: Check package version increment - name: Check package version increment
env: env:
BASE_REF: ${{ github.base_ref }} BASE_REF: ${{ gitea.base_ref }}
run: | run: |
test -n "$BASE_REF" test -n "$BASE_REF"
python3 scripts/check_package_version.py --base-ref "origin/${BASE_REF}" python3 scripts/check_package_version.py --base-ref "origin/${BASE_REF}"