Update Target Repo #4
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: # 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 |