diff --git a/.gitea/workflows/update-laws.yaml b/.gitea/workflows/update-laws.yaml index 9be00bfe..2be87ade 100644 --- a/.gitea/workflows/update-laws.yaml +++ b/.gitea/workflows/update-laws.yaml @@ -11,16 +11,21 @@ jobs: update: runs-on: ubuntu-latest steps: + - name: Configure Git + run: | + git config --global user.name 'LawGit Bot' + git config --global user.email 'bot@git.coded.law' + git config --global init.defaultBranch main + - name: Checkout repository - uses: actions/checkout@v4 - with: - fetch-depth: 0 # Vollständige Historie für Git-Operationen - persist-credentials: true # Credentials für Push speichern + run: | + git clone --depth=0 https://git.coded.law/${{ github.repository }}.git . + git remote set-url origin https://git.coded.law/${{ github.repository }}.git - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: '3.11' + run: | + python3 --version + python3 -m pip install --upgrade pip - name: Install dependencies run: | @@ -38,12 +43,6 @@ jobs: python3 xml_to_markdown.py --prod || echo "Konvertierung fehlgeschlagen oder keine Änderungen" continue-on-error: true - - name: Configure Git - run: | - git config --global user.name 'LawGit Bot' - git config --global user.email 'bot@git.coded.law' - git config --global init.defaultBranch main - - name: Check for changes id: check_changes run: |