Checkout-SVN #2009
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
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 |