File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 pre-commit :
1010 runs-on : ubuntu-latest
1111 steps :
12- - uses : actions/checkout@v4
13- - uses : actions/setup-python@v5
12+ - uses : actions/checkout@v6
13+ - uses : actions/setup-python@v6
1414 with :
1515 python-version : " 3.12"
1616 - uses : pre-commit/action@v3.0.1
Original file line number Diff line number Diff line change 1+ name : update PyMOLScripts submodule
2+
3+ on :
4+ schedule :
5+ # Run daily at 04:00 UTC
6+ - cron : " 0 4 * * *"
7+ workflow_dispatch :
8+
9+ permissions :
10+ contents : write
11+
12+ jobs :
13+ update-submodule :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : Checkout repository
17+ uses : actions/checkout@v6
18+ with :
19+ token : ${{ secrets.GITHUB_TOKEN }}
20+ submodules : true
21+ fetch-depth : 0
22+
23+ - name : Update PyMOLScripts submodule to latest
24+ run : |
25+ git submodule update --remote --merge common/pymol/PyMOLScripts
26+
27+ - name : Check for changes and push
28+ run : |
29+ if git diff --quiet common/pymol/PyMOLScripts; then
30+ echo "Submodule already up to date, nothing to commit."
31+ exit 0
32+ fi
33+ git config user.name "github-actions[bot]"
34+ git config user.email "github-actions[bot]@users.noreply.github.com"
35+ git add common/pymol/PyMOLScripts
36+ git commit -m "chore(deps): update PyMOLScripts submodule to latest"
37+ git push
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ dotfiles/
2424- Kitty + WezTerm
2525- Vim, Conda
2626- Aria2
27- - PyMOL scripts (submodule)
27+ - PyMOL scripts (submodule; auto-updated daily by [ Actions ] ( .github/workflows/update-pymolscripts-submodule.yml ) )
2828- Windows WSL config (` win/wsl/.wslconfig ` )
2929
3030## Usage
You can’t perform that action at this time.
0 commit comments