From 8cf36ba0aa99b25a9ab803e7946b877612239ae4 Mon Sep 17 00:00:00 2001 From: nicomiguelino Date: Tue, 21 Apr 2026 07:45:13 -0700 Subject: [PATCH 1/2] ci: add initialize-app workflow - Add manually triggered workflow for initializing Edge App instances - Supports stage and production environments - Uses Screenly/edge-apps-actions/initialize action --- .github/workflows/initialize-app.yml | 38 ++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/initialize-app.yml diff --git a/.github/workflows/initialize-app.yml b/.github/workflows/initialize-app.yml new file mode 100644 index 0000000..caf233a --- /dev/null +++ b/.github/workflows/initialize-app.yml @@ -0,0 +1,38 @@ +--- +name: Initialize Edge App + +on: + workflow_dispatch: + inputs: + environment: + description: Target environment for initialization + required: true + default: stage + type: choice + options: + - stage + - production + edge_app_name: + description: Edge App name (used for the CLI --name flag) + required: true + type: string + edge_app_title: + description: Display title for the Edge App instance + required: true + type: string + +run-name: Initializing ${{ inputs.edge_app_name }} in ${{ inputs.environment }} + +jobs: + initialize: + name: Initializing ${{ inputs.edge_app_name }} in ${{ inputs.environment }} + runs-on: ubuntu-latest + environment: ${{ inputs.environment }} + steps: + - uses: actions/checkout@v6 + - uses: Screenly/edge-apps-actions/initialize@add-initialize-action + with: + screenly_api_token: ${{ secrets.SCREENLY_API_TOKEN }} + edge_app_name: ${{ inputs.edge_app_name }} + edge_app_title: ${{ inputs.edge_app_title }} + environment: ${{ inputs.environment }} From 46a00006e95712ecda6a9d973bea8e7c0b08e7d7 Mon Sep 17 00:00:00 2001 From: nicomiguelino Date: Tue, 21 Apr 2026 10:17:47 -0700 Subject: [PATCH 2/2] ci: pin initialize action to v1 and checkout main - Pin edge-apps-actions/initialize to v1 - Explicitly checkout main branch on initialization --- .github/workflows/initialize-app.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/initialize-app.yml b/.github/workflows/initialize-app.yml index caf233a..82bd1fa 100644 --- a/.github/workflows/initialize-app.yml +++ b/.github/workflows/initialize-app.yml @@ -30,7 +30,9 @@ jobs: environment: ${{ inputs.environment }} steps: - uses: actions/checkout@v6 - - uses: Screenly/edge-apps-actions/initialize@add-initialize-action + with: + ref: main + - uses: Screenly/edge-apps-actions/initialize@v1 with: screenly_api_token: ${{ secrets.SCREENLY_API_TOKEN }} edge_app_name: ${{ inputs.edge_app_name }}