mirror of
https://github.com/StikDebug/StikDebug.git
synced 2026-10-15 20:10:30 +00:00
final
This commit is contained in:
parent
b0293c415e
commit
5519ece7ad
2 changed files with 9 additions and 5 deletions
10
.github/workflows/updatesource.yml
vendored
10
.github/workflows/updatesource.yml
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue