-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a41cfeb
commit 148fc0e
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Sync With WordPress SVN | ||
|
||
on: | ||
#push: | ||
# branches: | ||
# - master | ||
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 master | ||
- 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/persian-font/trunk . | ||
rm -rf ".svn" | ||
- name: Commit and push changes | ||
run: | | ||
git add . | ||
git commit -am "Sync plugin from SVN" | ||
git push origin master |