generated from astropy-learn/tutorial--template
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (29 loc) · 902 Bytes
/
build.yml
File metadata and controls
33 lines (29 loc) · 902 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: 'Build notebook'
env:
PYTHON-VERSION: "3.12"
on:
push:
branches:
- main
schedule:
# daily at 07:20 UTC
- cron: "20 07 * * 0"
# allow manual triggering of workflow
workflow_dispatch:
jobs:
preprocess-execute-convert:
runs-on: ubuntu-latest
if: ${{ github.repository != 'astropy-learn/tutorial--template' }}
permissions:
contents: write
steps:
- name: Call custom action to pre-process config files
id: pre-process
uses: astropy-learn/action--pre-process@main
with:
python-version: ${{ env.PYTHON-VERSION }}
- name: Call custom action to execute and convert notebook
uses: astropy-learn/action--execute-convert@main
with:
python-version: ${{ env.PYTHON-VERSION }}
tutorial-slug: ${{ steps.pre-process.outputs.tutorial-slug }}