chore: update project structure and workflows
- Update .gitignore for new backend structure - Update GitHub workflows for transcriptarr rename - Update launcher.py to use new module name
This commit is contained in:
2
.github/workflows/build_CPU.yml
vendored
2
.github/workflows/build_CPU.yml
vendored
@@ -17,7 +17,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Get version from subgen.py
|
||||
- name: Get version from transcriptarr.py
|
||||
id: get_version
|
||||
run: |
|
||||
version=$(grep -oP "subgen_version\s*=\s*'\K[^']+" subgen.py)
|
||||
|
||||
2
.github/workflows/build_GPU.yml
vendored
2
.github/workflows/build_GPU.yml
vendored
@@ -17,7 +17,7 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Get version from subgen.py
|
||||
- name: Get version from transcriptarr.py
|
||||
id: get_version
|
||||
run: |
|
||||
version=$(grep -oP "subgen_version\s*=\s*'\K[^']+" subgen.py)
|
||||
|
||||
8
.github/workflows/calver.yml
vendored
8
.github/workflows/calver.yml
vendored
@@ -5,7 +5,7 @@ on:
|
||||
branches:
|
||||
- 'main'
|
||||
paths:
|
||||
- 'subgen.py'
|
||||
- '../../transcriptarr.py'
|
||||
workflow_dispatch: # Allow manual triggering
|
||||
|
||||
jobs:
|
||||
@@ -26,11 +26,11 @@ jobs:
|
||||
echo "COMMIT_COUNT=$COMMIT_COUNT"
|
||||
echo "VERSION=${YEAR}.${MONTH}.${COMMIT_COUNT}" >> $GITHUB_ENV
|
||||
|
||||
- name: Update subgen.py with version
|
||||
- name: Update transcriptarr.py with version
|
||||
run: |
|
||||
sed -i "s/subgen_version =.*/subgen_version = '${{ env.VERSION }}'/" subgen.py
|
||||
|
||||
- name: Check if subgen.py was actually changed (compare with HEAD)
|
||||
- name: Check if transcriptarr.py was actually changed (compare with HEAD)
|
||||
id: check_change
|
||||
run: |
|
||||
if git diff --quiet HEAD subgen.py; then
|
||||
@@ -39,7 +39,7 @@ jobs:
|
||||
echo "::set-output name=changed::true"
|
||||
fi
|
||||
|
||||
- name: Amend commit if subgen.py changed
|
||||
- name: Amend commit if transcriptarr.py changed
|
||||
if: steps.check_change.outputs.changed == 'true'
|
||||
env:
|
||||
GIT_AUTHOR_NAME: "McCloudS"
|
||||
|
||||
Reference in New Issue
Block a user