From 047ea8d931e1a6e17fdf5e7f588e14ec33f0fc00 Mon Sep 17 00:00:00 2001 From: Asainte Bueno-Villanueva Date: Fri, 6 Feb 2026 07:40:03 -0500 Subject: [PATCH] Update .gitea/workflows/update-dispatches.yaml --- .gitea/workflows/update-dispatches.yaml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/update-dispatches.yaml b/.gitea/workflows/update-dispatches.yaml index 993fe7b..734b4a5 100644 --- a/.gitea/workflows/update-dispatches.yaml +++ b/.gitea/workflows/update-dispatches.yaml @@ -5,10 +5,12 @@ jobs: refresh-news: runs-on: debian-12 steps: - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 50 + - name: Native Git Checkout + shell: bash + run: | + # Clean workspace and clone manually using system git + rm -rf ./* + git clone --depth 50 https://git.dynastyrevolution.com/DYNR/DynastyRevolution-Scripts.git . - name: Generate News Scroll shell: bash @@ -22,7 +24,6 @@ jobs: - name: Commit and Push shell: bash env: - # This uses the secret you just created GITEA_TOKEN: ${{ secrets.PUSH_TOKEN }} run: | git config --local user.email "action@dynastyrevolution.com" @@ -31,7 +32,10 @@ jobs: git add dispatches.txt git commit -m "chore: Update Archive Dispatches [skip ci]" || exit 0 - # Push via HTTPS using the token for authentication - # This avoids the root/hook/permission issues entirely + # Use HTTPS with the Secret Token to bypass Node and Hook issues REMOTE_URL="https://dynasty-bot:${GITEA_TOKEN}@git.dynastyrevolution.com/DYNR/DynastyRevolution-Scripts.git" + + # Authorize the directory for the root runner + git config --global --add safe.directory $(pwd) + git push "$REMOTE_URL" main \ No newline at end of file