From b237e4a078070309323fd933d90aa12f1824fdab Mon Sep 17 00:00:00 2001 From: Alex Frantz Date: Sat, 18 Oct 2025 18:19:40 -0400 Subject: [PATCH] using gitea.. --- .gitea/workflows/write-new-template.yml | 30 +++++++++++++++++-------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/write-new-template.yml b/.gitea/workflows/write-new-template.yml index 8d6a1dd..52eee18 100644 --- a/.gitea/workflows/write-new-template.yml +++ b/.gitea/workflows/write-new-template.yml @@ -21,12 +21,24 @@ jobs: echo "${{ secrets.VAULT_PASS }}" > ~/.vault_pass.txt python3 scripts/extract_to_template.py - - name: Create PR - uses: peter-evans/create-pull-request@v6 - with: - token: ${{ secrets.TOKEN }} - commit-message: "Extract new template" - branch: "template-extraction" - title: "Automated Template Extraction" - body: "PR to update the template as new secrets were added" - base: main + - name: Commit changes + run: | + git config user.name "Service Account" + git config user.email "alex+homelab@alexav.gg" + git checkout -b template-extraction + git add . + git commit -m "Automated template extraction" + git push origin template-extraction + + - name: Create Pull Request + run: | + curl -X POST \ + "https://git.alexav.gg/api/v1/repos/alex/homelab/pulls" \ + -H "Authorization: token ${{ secrets.TOKEN }}" + -H "Content-Type: application/json" + -d '{ + "title": "Automated Template Extraction", + "body": "Updates the `all.template.yml` file with latest secrets for services", + "head": "template-extraction", + "base": "main" + }'