Comments (4)
How about deploying the workflow as a GitHub App? This way we can easily add the action to an existing repository 👍
from stargazer.
it would be very nice if this could be made into a reusable github action. Which we can run on a schedule to auto update the stargazers video for our project.
from stargazer.
on:
workflow_dispatch:
inputs:
repoOrg:
description: Repo Org
required: true
default: yashash1511
repoName:
description: Repo Name
required: true
default: win11Svelte
starCount:
description: Star Count
required: true
default: 35
duration:
description: Duration (seconds)
required: false
default: 5
name: Render video
jobs:
render:
name: Render video
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@main
with:
repository: pomber/stargazer
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- name: Install dependencies (ffmpeg and fonts)
run: |
sudo apt-get update -yqq
sudo apt-get install -yq --no-install-recommends \
ffmpeg \
fonts-noto-core fonts-noto-cjk fonts-noto-color-emoji fonts-noto-mono
- name: Install dependencies (node modules)
run: npm i
- name: Inject configurations
run: echo $WORKFLOW_INPUT | tee input-props.json | jq -C '.' # Inject to file, inspect to logs
env:
WORKFLOW_INPUT: ${{ toJson(github.event.inputs) }}
- name: Render video
run: npm run build -- --props="./input-props.json"
env:
REMOTION_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload video
uses: actions/upload-artifact@v3
with:
name: out.mp4
path: out.mp4
- name: Checkout
uses: actions/checkout@main
- run: rm -f out.mp4
- uses: actions/download-artifact@v3
with:
name: out.mp4
- run: |
git config --global user.email github-actions[bot]@users.noreply.github.com
git config --global user.name github-actions[bot]
git add .
git commit -m "Updated Stargazers Video"
git push
from stargazer.
You can now use the repo as a template!
- Added instructions in the README: https://github.com/pomber/stargazer#make-your-own-video-local
- Enabled the "Use as template" button on GitHub
- Soon: Scaffolding a project using
npm init video
from stargazer.
Related Issues (12)
- Bad credentials HOT 1
- Cannot read properties of undefined (reading 'length') HOT 1
- Dark theme?
- feat: add ability to skip fetching all stargazers HOT 1
- Fails for `pkgxdev/pkgx` HOT 4
- For Forked repo also. HOT 5
- Uncaught Error: A delayRender was called but not cleared after 25000ms HOT 5
- At Least 1 Star Needed
- Visual glitches after a lot of stars HOT 3
- You passed --props but it was neither valid JSON nor a file path to a valid JSON file. HOT 3
- https://anas-ios.netlify.app
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stargazer.