-
Notifications
You must be signed in to change notification settings - Fork 7
37 lines (32 loc) · 1.04 KB
/
update-target-repo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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