Files
motion_light/.gitea/workflows/update_version.yml
T
sirmrak 6cf92d83f0
Update Version / Update Version (push) Successful in 5s
Обновить .gitea/workflows/update_version.yml
2026-07-09 21:24:56 +03:00

45 lines
1.1 KiB
YAML

name: Update Version
on:
push:
branches:
- main
- master
env:
GIT_SSL_NO_VERIFY: true
jobs:
update-version:
name: Update Version
runs-on: ubuntu-latest
# Пропускаем workflow если коммит от бота
if: github.actor != 'gitea-actions[bot]' && github.actor != 'Gitea Actions Bot'
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: Run semantic-release
env:
GITEA_TOKEN: ${{ secrets.PAT_TOKEN }}
PYTHONHTTPSVERIFY: "0"
run: semantic-release version