Skip to content
play

GitHub Action

Open Graph social cards

v1.2 Latest version

Open Graph social cards

play

Open Graph social cards

Create open graph social cards which can be shared on facebook, twitter, linkedin etc

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Open Graph social cards

uses: Jasmin2895/[email protected]

Learn more about this action in Jasmin2895/open-graph-image

Choose a version

open-graph-image

Create social cards using open graph image.

Inputs

bold-text

Required The text which will appear as bold text on image.

plain-text

Required The text which will appear as normal text on image.

theme

The theme layout for social image. There are two values possible which are light and dark.

Outputs

Image is stored in the root directory.

Example usage

- name: Open Graph social cards
  uses: Jasmin2895/[email protected]
  with:
    bold-text: "Open graph image"
    plain-text: "for social media platform"
    theme: "dark"

- name: Archive open graph image
  uses: actions/upload-artifact@v2
  with:
    name: open-graph-image
    path: og-image.now.sh.png

- name: Download all workflow run artifacts
  uses: actions/download-artifact@v2

Output Image

Output Image