-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
39 lines (39 loc) · 1.01 KB
/
action.yml
File metadata and controls
39 lines (39 loc) · 1.01 KB
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
34
35
36
37
38
39
name: 'GESIS Methods Hub Preview'
description: 'Preview content of GitHub repository for GESIS Methods Hub'
inputs:
file:
description: 'File to render to HTML'
required: false
default: 'README.md'
runs:
using: "composite"
steps:
- shell: bash
run: |
echo jupyter-repo2docker==2024.7.0 > .gesis-methodshub-gh-action-preview.txt
- uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: pip
cache-dependency-path: .gesis-methodshub-gh-action-preview.txt
- shell: bash
run: python -m pip install -r .gesis-methodshub-gh-action-preview.txt
- shell: bash
run: |
repo2docker \
--image-name $GITHUB_REPOSITORY_ID:$GITHUB_SHA \
--no-run \
--no-push \
.
- shell: bash
env:
INPUT_FILE: ${{ inputs.file }}
run: |
docker \
run \
$GITHUB_REPOSITORY_ID:$GITHUB_SHA \
quarto \
render \
$INPUT_FILE \
--execute \
--to html