Code Monkey home page Code Monkey logo

action-devcard's Introduction

GitHub Action for fetching the devcard from daily.dev

GitHub GitHub Workflow Status (event) GitHub release (latest by date)

Example usage

jobs:
  devcard:
    runs-on: ubuntu-latest
    permissions:
      contents: write
    steps:
      - name: devcard
        uses: dailydotdev/[email protected]
        with:
          devcard_id: ${{ secrets.DEVCARD_ID }}

Action options

Required

  • devcard_id: this is the unique hash of the devcard, it can be found in the URL of the devcard.
    • e.g. https://api.daily.dev/devcards/0b156485612243bfa39092.3.171e276.png where the devcard_id is 0b156485612243bfa39092.3.171e276
    • Can be found at https://app.daily.dev/devcard

Optional

  • token: GitHub Token used to commit the devcard
  • commit_branch: The branch to commit the devcard to. Defaults to the branch of the action.
  • commit_message: The commit message to use when committing the devcard. Defaults to Update ${filename}.
    • You can use ${filename} in the message to refer to the filename of the devcard.
  • commit_filename: The filename to commit the devcard to. Defaults to devcard.svg.
    • If you want to save the devcard as a PNG, you can use devcard.png instead, or any other filename ending in .png.
  • committer_email: The committer email used in commit. Defaults to [email protected].
  • committer_name: The committer name used in commit. Defaults to github-actions[bot].
  • dryrun: If set to true, the action will run as normal, but not actually commit the devcard

Advanced usage

This will save the devcard as PNG and commit to a separate branch named devcard.

jobs:
  devcard:
    runs-on: ubuntu-latest
    permissions:
      contents: write
    steps:
      - name: devcard
        uses: dailydotdev/[email protected]
        with:
          devcard_id: ${{ secrets.DEVCARD_ID }}
          commit_branch: devcard
          commit_filename: devcard.png
          commit_message: "chore: update ${filename}"

Keep up-to-date with GitHub Dependabot

Since Dependabot has native GitHub Actions support, to enable it on your GitHub repo all you need to do is add the .github/dependabot.yml file:

version: 2
updates:
  # Maintain dependencies for GitHub Actions
  - package-ecosystem: "github-actions"
    directory: "/"
    schedule:
      interval: "daily"

action-devcard's People

Contributors

bobychaudhary avatar centrumek avatar dependabot[bot] avatar github-actions[bot] avatar humble-barnacle001 avatar mheob avatar ombratteng avatar

Stargazers

 avatar

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.