Skip to content

Commit 059e8b6

Browse files
Update README to reflect daily auto-update of PyMOL scripts submodule; upgrade GitHub Actions to latest versions for CI workflows.
1 parent 8544b01 commit 059e8b6

3 files changed

Lines changed: 40 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ jobs:
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
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)