Skip to content

Commit e4a6e0b

Browse files
committed
Create dependabot.yml and update actions
1 parent 84fc9d8 commit e4a6e0b

File tree

2 files changed

+31
-15
lines changed

2 files changed

+31
-15
lines changed

.github/dependabot.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
2+
version: 2
3+
updates:
4+
- package-ecosystem: "github-actions"
5+
directory: "/" # Location of package manifests
6+
schedule:
7+
interval: "monthly"
8+
9+
- package-ecosystem: "julia"
10+
directories:
11+
- "/"
12+
schedule:
13+
interval: "weekly"
14+
groups:
15+
all-julia-packages:
16+
patterns:
17+
- "*"

.github/workflows/ExportNotebooks.yml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,45 +17,44 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Checkout learn.JuliaAstro source
20-
uses: actions/checkout@v5
20+
uses: actions/checkout@v6
2121

2222
- name: 🙌 Install Julia
2323
uses: julia-actions/setup-julia@v2
2424
with:
2525
version: "1.12"
2626

2727
- name: ⏱ Cache notebook states
28-
uses: actions/cache@v4
28+
uses: actions/cache@v5
2929
with:
3030
path: _cache
3131
key: ${{ runner.os }}-pluto_state_cache-v3-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}-${{ github.run_id }}
32-
restore-keys: |
33-
${{ runner.os }}-pluto_state_cache-v3-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}
32+
restore-keys: ${{ runner.os }}-pluto_state_cache-v3-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}
3433

3534
- name: ⏱ Cache .julia
36-
uses: actions/cache@v4
35+
uses: actions/cache@v5
3736
with:
3837
path: ~/.julia
3938
key: ${{ runner.os }}-dotjulia-v1-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}-${{ github.run_id }}
40-
restore-keys: |
41-
${{ runner.os }}-dotjulia-v1-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}
39+
restore-keys: ${{ runner.os }}-dotjulia-v1-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}
4240

4341
- name: 📅 Checkout source
44-
uses: actions/checkout@v5
42+
uses: actions/checkout@v6
43+
44+
- name: 🙌 Install dependencies
45+
shell: julia --project {0}
46+
run: import Pkg; Pkg.instantiate()
4547

4648
- name: 🪴 Generate site
49+
shell: julia --project {0}
4750
run: |
48-
julia --project -e '
49-
import Pkg
50-
Pkg.instantiate()
51-
import PlutoPages
52-
53-
PlutoPages.generate("."; html_report_path="generation_report.html")'
51+
import PlutoPages
52+
PlutoPages.generate("."; html_report_path="generation_report.html")
5453
env:
5554
JULIA_PKG_SERVER: ""
5655

5756
- name: 📰 Upload site generation report
58-
uses: actions/upload-artifact@v4
57+
uses: actions/upload-artifact@v6
5958
if: always()
6059
with:
6160
path: generation_report.html

0 commit comments

Comments
 (0)