forked from keiyoushi/extensions-source
-
Notifications
You must be signed in to change notification settings - Fork 4
37 lines (31 loc) · 1 KB
/
copy.yml
File metadata and controls
37 lines (31 loc) · 1 KB
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: Copy Selected Extensions to Ori
on:
workflow_dispatch:
jobs:
copy:
runs-on: ubuntu-latest
steps:
- name: Checkout branch ori
uses: actions/checkout@v4
with:
ref: ori
token: ${{ secrets.GITHUB_TOKEN }}
- name: Fetch branch main
run: git fetch origin main
- name: Copy selected folders from main to ori
run: |
# Daftar folder yang mau di-copy dari src/id/ branch main
FOLDERS=(
"keikomik"
)
for folder in "${FOLDERS[@]}"; do
echo "Copying src/id/$folder..."
git checkout origin/main -- "src/id/$folder"
done
- name: Commit and push to ori
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add -A
git diff --staged --quiet || git commit -m "chore: copy selected id extensions from main to ori"
git push origin ori