Coder Social home page Coder Social logo

Maybe make it a template? about stargazer HOT 4 CLOSED

patgoat avatar patgoat commented on August 15, 2024 6
Maybe make it a template?

from stargazer.

Comments (4)

junhoyeo avatar junhoyeo commented on August 15, 2024 2

How about deploying the workflow as a GitHub App? This way we can easily add the action to an existing repository 👍

from stargazer.

yashash-pugalia avatar yashash-pugalia commented on August 15, 2024

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.

yashash-pugalia avatar yashash-pugalia commented on August 15, 2024
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.

JonnyBurger avatar JonnyBurger commented on August 15, 2024

You can now use the repo as a template!

from stargazer.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.