Skip to content

Update Target Repo

Update Target Repo #4

name: Update Target Repo
on:
push:
paths:
- Luau/KAH/Main Scripts/KohlsLite.lua
workflow_dispatch: # Allows manual triggering of the workflow
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout Source Repo
uses: actions/checkout@v2
with:
repository: S-PScripts/scripts
token: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout Target Repo
uses: actions/checkout@v2
with:
repository: S-PScripts/kohlslite
token: ${{ secrets.GITHUB_TOKEN }}
path: kohlslite
- name: Copy File
run: |
cp "Luau/KAH/Main Scripts/KohlsLite.lua" "kohlslite/source.txt"
- name: Commit and Push Changes
run: |
cd kohlslite
git config user.name "S-PScriptsBOT"
git config user.email "[email protected]"
git add source.txt
git commit -m "Update file from scripts" || echo "No changes to commit"
git push