Update .gitea/workflows/update-dispatches.yaml
All checks were successful
Update Dispatches / refresh-news (push) Successful in 3s
All checks were successful
Update Dispatches / refresh-news (push) Successful in 3s
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user