-
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
0 parents
commit 3508981
Showing
1 changed file
with
37 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,37 @@ | ||
name: Checkout-SVN | ||
|
||
on: | ||
schedule: | ||
- cron: "0 */12 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
checkout-SVN: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: "recursive" | ||
ref: master | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
# - name: Remove old previous version | ||
# run: rm -rf .npmignore .git && rm -rf * | ||
# - name: Add universe repo | ||
# run: sudo add-apt-repository universe | ||
- name: Install git-svn | ||
run: sudo add-apt-repository ppa:git-core/ppa && sudo apt-get update && sudo apt-get install git-svn | ||
- name: Config git | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
- name: Setup SVN | ||
run: | | ||
git svn init https://dev.geogebra.org/svn/trunk/geogebra/giac/src/giac/ | ||
git update-ref refs/remotes/git-svn refs/remotes/origin/master | ||
git svn info | ||
- name: Pull SVN | ||
run: git svn rebase | ||
- name: Pull repo # in case of someone updated repo during svn fetch ... | ||
run: git pull | ||
- name: Push new changes | ||
run: git push |