-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
59 lines (49 loc) · 1.48 KB
/
action.yml
File metadata and controls
59 lines (49 loc) · 1.48 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: 'SPIN Oneshot Execution'
description: 'Execute a SPIN notebook in oneshot mode and capture results'
author: 'Siftd'
branding:
icon: 'play-circle'
color: 'blue'
inputs:
notebook-url:
description: 'URL to the SPIN notebook to execute'
required: true
spin-token:
description: 'Authentication token for SPIN runtime'
required: true
saturn-url:
description: 'URL to Saturn s-server instance'
required: false
default: ''
max-duration:
description: 'Maximum execution duration (e.g., 10m, 1h)'
required: false
default: '10m'
output-format:
description: 'Output format: urls, json, or logs'
required: false
default: 'urls'
outputs:
session-urls:
description: 'JSON array of viewable session URLs'
exit-code:
description: 'Notebook execution exit code (0 = success)'
execution-duration:
description: 'Execution duration in seconds'
runs:
using: 'docker'
image: 'Dockerfile'
env:
NOTEBOOK_URL: ${{ inputs.notebook-url }}
SPIN_TOKEN: ${{ inputs.spin-token }}
SATURN_URL: ${{ inputs.saturn-url }}
MAX_DURATION: ${{ inputs.max-duration }}
OUTPUT_FORMAT: ${{ inputs.output-format }}
# Pass through GitHub Actions context for notebooks that need it
GHA_TOKEN: ${{ github.token }}
GHA_RUN_ID: ${{ github.run_id }}
GHA_REPOSITORY: ${{ github.repository }}
GHA_JOB: ${{ github.job }}
GHA_WORKFLOW: ${{ github.workflow }}
GHA_SHA: ${{ github.sha }}
GHA_REF: ${{ github.ref }}