Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

edge-apps-actions

Composite GitHub Actions for Screenly Edge Apps.

Available Actions

checks

Builds, lints, formats, and tests a Screenly Edge App.

- uses: Screenly/edge-apps-actions/checks@v1
  with:
    bun-version: latest # optional
Input Description Required Default
bun-version Bun version to use No latest

initialize

Creates and deploys a new Screenly Edge App instance.

- uses: Screenly/edge-apps-actions/initialize@v1
  with:
    screenly_api_token: ${{ secrets.SCREENLY_API_TOKEN }}
    edge_app_name: my-edge-app
    edge_app_title: My Edge App
    environment: stage # optional, defaults to stage
    edge_app_id: ${{ vars.STAGE_EDGE_APP_ID }} # optional, see below
Input Description Required Default
screenly_api_token Screenly API token Yes
edge_app_name Edge App name (used for the CLI --name flag) Yes
edge_app_title Display title for the Edge App instance Yes
environment Target environment (stage or production) No stage
edge_app_id Edge App ID for this environment No ""

When edge_app_id is provided, it's exported as EDGE_APP_ID and takes precedence over any id in screenly.yml/screenly_qc.yml; a single screenly.yml is used instead of branching between screenly.yml/screenly_qc.yml by environment. When omitted, behavior is unchanged: the manifest file is selected by environment as before, and no id is required to come from an env var. Requires screenly/cli v26.9.0 or later; see the v26.9.0 release notes for details.

update

Builds and deploys an existing Screenly Edge App.

- uses: Screenly/edge-apps-actions/update@v1
  with:
    screenly_api_token: ${{ secrets.SCREENLY_API_TOKEN }}
    environment: stage # optional, defaults to stage
    delete_missing_settings: false # optional, defaults to false
    edge_app_id: ${{ vars.STAGE_EDGE_APP_ID }} # optional, see below
Input Description Required Default
screenly_api_token Screenly API token Yes
environment Target environment (stage or production) No stage
delete_missing_settings Delete settings that exist on the server but not in the manifest No false
edge_app_id Edge App ID for this environment No ""

When edge_app_id is provided, it's exported as EDGE_APP_ID and takes precedence over any id in screenly.yml/screenly_qc.yml; a single screenly.yml is used instead of branching between screenly.yml/screenly_qc.yml by environment. When omitted, behavior is unchanged: the manifest file is selected by environment as before, and no id is required to come from an env var. Requires screenly/cli v26.9.0 or later; see the v26.9.0 release notes for details.

About

Reusable GitHub Actions for Screenly Edge Apps

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors