From 860584ca79e5b9a7fbc7ad88f6211dfbb3a2a50f Mon Sep 17 00:00:00 2001 From: sirmrak Date: Thu, 9 Jul 2026 19:43:19 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20.gitea/workflows/update=5Fversion.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/update_version.yml | 57 +++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .gitea/workflows/update_version.yml diff --git a/.gitea/workflows/update_version.yml b/.gitea/workflows/update_version.yml new file mode 100644 index 0000000..9597f58 --- /dev/null +++ b/.gitea/workflows/update_version.yml @@ -0,0 +1,57 @@ +Update Versionname: Update Version + +on: + push: + branches: + - main + - master + +env: + GIT_SSL_NO_VERIFY: true + +jobs: + update-version: + name: Update Version + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ secrets.PAT_TOKEN }} + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.11" + + - name: Install dependencies + run: pip install python-semantic-release + + - name: Configure Git + run: | + git config --local user.email "actions@gitea.local" + git config --local user.name "Gitea Actions Bot" + + - name: Disable SSL verification + run: | + SITE_PACKAGES=$(python3 -c "import site; print(site.getsitepackages()[0])") + cat > "$SITE_PACKAGES/sitecustomize.py" << 'PYEOF' + import ssl + ssl._create_default_https_context = ssl._create_unverified_context + PYEOF + + - name: Run Semantic Release (no publish) + env: + GITEA_TOKEN: ${{ secrets.PAT_TOKEN }} + run: | + # Запускаем semantic-release, но не публикуем релиз + # Он только обновит manifest.json и создаст тег + semantic-release version --no-vcs-release + + # Пушим изменения обратно в Gitea + git push origin main + git push origin --tags \ No newline at end of file