Update KohlsLite.lua #102
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Target Repo | |
on: | |
push: | |
paths: | |
- Luau/KAH/Main Scripts/KohlsLite.lua | |
workflow_dispatch: | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Source Repo | |
uses: actions/checkout@v2 | |
with: | |
repository: S-PScripts/scripts | |
token: ${{ secrets.GITHUB_TOKEN }} # Use the default GitHub token for the source repo | |
- name: Checkout Target Repo | |
uses: actions/checkout@v2 | |
with: | |
repository: S-PScripts/kohlslite | |
token: ${{ secrets.PAT_TOKEN }} # Use your PAT here | |
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" # Set your bot name | |
git config user.email "[email protected]" # Set your email | |
git add source.txt | |
git commit -m "Update file from scripts" || echo "No changes to commit" | |
git push |