From 5519ece7adfda1ad357a1ac3955c744c8f0f63bf Mon Sep 17 00:00:00 2001 From: neoarz Date: Mon, 14 Apr 2025 21:53:26 -0400 Subject: [PATCH] final --- .github/workflows/updatesource.yml | 10 +++++++--- update_json.py | 4 ++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/updatesource.yml b/.github/workflows/updatesource.yml index 7dc4932..eb11ca4 100644 --- a/.github/workflows/updatesource.yml +++ b/.github/workflows/updatesource.yml @@ -15,6 +15,10 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + repository: 0-Blu/StikJIT + ref: main - name: Set up Python uses: actions/setup-python@v4 @@ -32,7 +36,7 @@ jobs: - name: Debug repository information run: | - echo "Repository: $GITHUB_REPOSITORY" + echo "Repository: 0-Blu/StikJIT" echo "Event name: $GITHUB_EVENT_NAME" echo "Current directory: $(pwd)" echo "Repository contents:" @@ -59,8 +63,8 @@ jobs: echo "Changes detected in repo.json:" git diff --staged git commit -m "Updated source with latest StikJIT release" - # Force push to main - git push -f origin HEAD:main + # Push to main branch of original repository + git push origin main echo "changes=true" >> $GITHUB_OUTPUT fi diff --git a/update_json.py b/update_json.py index 5e82508..463a8b8 100644 --- a/update_json.py +++ b/update_json.py @@ -165,8 +165,8 @@ def update_json_file(json_file, latest_release): return False def main(): - # Get repository from environment variable or use default - repo_url = os.environ.get("GITHUB_REPOSITORY", "neoarz/StikJIT") + # Use the original repository instead of fork + repo_url = "0-Blu/StikJIT" json_file = "repo.json" print(f"Using repository: {repo_url}")