fix: add config

This commit is contained in:
2026-07-29 18:35:02 +02:00
parent 77354e6f48
commit 4069de69f7
+9 -1
View File
@@ -38,7 +38,15 @@ jobs:
- name: Setup OpenTofu
uses: opentofu/setup-opentofu@v1
- name: Configure Git Auth for Private Modules
run: |
# Strip the protocol (https:// or http://) from the server URL
GITEA_HOST=$(echo "${{ gitea.server_url }}" | sed -e 's|^[^/]*//||')
# Tell Git to use the actor and token for any request matching your server
git config --global url."https://${{ gitea.actor }}:${{ secrets.GITEA_TOKEN }}@$GITEA_HOST/".insteadOf "${{ gitea.server_url }}/"
- name: OpenTofu Init & Apply
run: |
tofu init