-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 971 Bytes
/
main.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
38
39
name: Sync With WordPress SVN
on:
#push:
# branches:
# - main
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '00 12 * * *'
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure Git
run: |
git config --global user.name 'Farhad Sakhaei'
git config --global user.email '[email protected]'
- name: Configure Git
run: |
git checkout main
- name: Remove unwanted files
run: |
find . -mindepth 1 -maxdepth 1 ! -name '.github' ! -name '.git' -exec rm -rf {} +
- name: Get plugin from SVN
run: |
svn checkout https://plugins.svn.wordpress.org/smart-seo/trunk .
rm -rf ".svn"
- name: Commit and push changes
run: |
git add .
git commit -am "Sync plugin from SVN"
git push origin main