File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : " Version maintenance"
2+
3+ on :
4+ push :
5+ # branches:
6+ # - master
7+
8+ jobs :
9+
10+ update-wiki :
11+ name : Update Wiki repo
12+ runs-on : ubuntu-latest
13+ steps :
14+
15+ - name : Checkout Colvars repo
16+ uses : actions/checkout@v4
17+
18+ - name : Checkout Wiki repo
19+ uses : actions/checkout@v4
20+ with :
21+ repository : ' Colvars/colvars.wiki'
22+ path : ' wiki'
23+
24+ - name : Cache the SSH key for the runner
25+ env :
26+ SSH_KEY : ${{ secrets.PULL_PUSH_COLVARS_KEY }}
27+ run : |
28+ mkdir -p -m 700 ~/.ssh
29+ echo "${SSH_KEY}" > ~/.ssh/id_rsa
30+ chmod 600 ~/.ssh/id_rsa
31+ git config --global user.email "[email protected] " 32+ git config --global user.name "CI runner"
33+
34+ - name : Update Wiki page that lists Colvars versions
35+ run : |
36+ bash doc/print_engine_versions.sh > wiki/List-of-Colvars-versions-included-in-simulation-and-analysis-packages.md
37+ if ! git -C wiki diff --quiet ; then
38+ git -C wiki add List-of-Colvars-versions-included-in-simulation-and-analysis-packages.md
39+ git -C wiki commit -m "Update list of Colvars versions"
40+ git -C wiki push origin master
41+ fi
You can’t perform that action at this time.
0 commit comments