Files
homelab/.gitea/workflows/write-new-template.yml
Alex Frantz 1c35d3d826
All checks were successful
Deploy Containers / Prepare (push) Successful in 4s
handle existing vault removal
2025-10-18 18:15:19 -04:00

33 lines
802 B
YAML

name: Create New Secrets Template
on:
push:
branches:
- main
paths:
- "host_vars/**"
workflow_dispatch:
jobs:
create-pr:
name: Extract updated template
runs-on: runner
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run extraction script
run: |
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