37 lines
742 B
YAML
37 lines
742 B
YAML
name: Auto Increment Version
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
bump_version:
|
|
runs-on: linux_amd64
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.12'
|
|
|
|
- name: List files in the repository
|
|
run: |
|
|
echo "Listing files in the current directory:"
|
|
ls -la
|
|
|
|
- name: Push new tag
|
|
run: |
|
|
git config user.name "gitea"
|
|
git config user.email "gitea@lucasjensen.me"
|
|
|
|
/usr/bin/env python3 --version
|
|
|
|
echo "Creating and pushing new tag"
|
|
./server/app/scripts/bump.py
|
|
|