forked from pomber/stargazer
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 977 Bytes
/
Copy pathrender-video.yml
File metadata and controls
38 lines (38 loc) · 977 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
34
35
36
37
38
on:
workflow_dispatch:
inputs:
repoOrg:
description: "Repo Org"
required: true
default: "pomber"
repoName:
description: "Repo Name"
required: true
default: "didact"
starCount:
description: "Star Count"
required: true
default: 100
duration:
description: "Duration (seconds)"
required: false
default: 15
name: Render video
jobs:
render:
name: Render video
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: actions/setup-node@main
- run: sudo apt update
- run: sudo apt install ffmpeg
- run: npm i
- run: npm run build -- --props="$WORKFLOW_INPUT"
env:
WORKFLOW_INPUT: ${{ toJson(github.event.inputs) }}
REMOTION_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v2
with:
name: out.mp4
path: out.mp4