Skip to content

Commit

Permalink
👷 Checkout SVN workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
LeGmask committed Jan 15, 2022
0 parents commit 3508981
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/checkout.yml
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

0 comments on commit 3508981

Please sign in to comment.