Skip to content

Commit faf0a08

Browse files
committed
add workflow
1 parent 2b9c86f commit faf0a08

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/build.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: 'Call actions to pre-process config files and execute/convert notebook'
2+
3+
env:
4+
PYTHON-VERSION: "3.12"
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
schedule:
11+
# daily at 07:20 UTC
12+
- cron: "20 07 * * *"
13+
# allow manual triggering of workflow
14+
workflow_dispatch:
15+
16+
jobs:
17+
preprocess-execute-convert:
18+
runs-on: ubuntu-latest
19+
permissions:
20+
contents: write
21+
steps:
22+
- name: Call custom action to pre-process config files
23+
id: pre-process
24+
uses: astropy-learn/pre-process@main
25+
with:
26+
python-version: ${{ env.PYTHON-VERSION }}
27+
28+
- name: Call custom action to execute and convert notebook
29+
uses: astropy-learn/execute-convert@main
30+
with:
31+
python-version: ${{ env.PYTHON-VERSION }}
32+
tutorial-slug: ${{ steps.pre-process.outputs.tutorial-slug }}

0 commit comments

Comments
 (0)