From 3508981c53c02d7da62a38b45e58058dfed73ff5 Mon Sep 17 00:00:00 2001 From: Evann DREUMONT <53308142+LeGmask@users.noreply.github.com> Date: Sat, 15 Jan 2022 13:15:37 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Checkout=20SVN=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/checkout.yml | 37 ++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/checkout.yml diff --git a/.github/workflows/checkout.yml b/.github/workflows/checkout.yml new file mode 100644 index 00000000..181d8efe --- /dev/null +++ b/.github/workflows/checkout.yml @@ -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 github-actions@github.com + - 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