Skip to content

Commit 2e95f6c

Browse files
Use EDGE_APP_ID for stage and production deploys (#10)
- Set STAGE_EDGE_APP_ID and PRODUCTION_EDGE_APP_ID repo variables and pass them through to the initialize/update actions as edge_app_id - Drop id from screenly.yml and delete screenly_qc.yml since a single manifest is now used regardless of environment - Pin edge-apps-actions to a commit for now, since v26.9.0 can't be tagged there until a repo ruleset is adjusted
1 parent 6d1ca9f commit 2e95f6c

4 files changed

Lines changed: 6 additions & 50 deletions

File tree

‎.github/workflows/initialize-edge-app.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ jobs:
3232
- uses: actions/checkout@v7
3333
with:
3434
ref: ${{ inputs.environment == 'production' && 'main' || github.ref }}
35-
- uses: Screenly/edge-apps-actions/initialize@v1
35+
- uses: Screenly/edge-apps-actions/initialize@f4ccd2bd50db5fb0a5147d287ac03cafe552d29b
3636
with:
3737
screenly_api_token: ${{ secrets.SCREENLY_API_TOKEN }}
3838
edge_app_name: ${{ inputs.edge_app_name }}
3939
edge_app_title: ${{ inputs.edge_app_title }}
4040
environment: ${{ inputs.environment }}
41+
edge_app_id: ${{ secrets.EDGE_APP_ID || (inputs.environment == 'production' && vars.PRODUCTION_EDGE_APP_ID || (inputs.environment == 'stage' && vars.STAGE_EDGE_APP_ID)) }}

‎.github/workflows/update-edge-app.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ jobs:
1818
environment: stage
1919
steps:
2020
- uses: actions/checkout@v7
21-
- uses: Screenly/edge-apps-actions/update@v1
21+
- uses: Screenly/edge-apps-actions/update@f4ccd2bd50db5fb0a5147d287ac03cafe552d29b
2222
with:
2323
screenly_api_token: ${{ secrets.SCREENLY_API_TOKEN }}
2424
environment: stage
2525
delete_missing_settings: 'true'
26+
edge_app_id: ${{ secrets.EDGE_APP_ID || vars.STAGE_EDGE_APP_ID }}
2627

2728
deploy-production:
2829
name: Updating Simple Timer App in production
@@ -31,8 +32,9 @@ jobs:
3132
environment: production
3233
steps:
3334
- uses: actions/checkout@v7
34-
- uses: Screenly/edge-apps-actions/update@v1
35+
- uses: Screenly/edge-apps-actions/update@f4ccd2bd50db5fb0a5147d287ac03cafe552d29b
3536
with:
3637
screenly_api_token: ${{ secrets.SCREENLY_API_TOKEN }}
3738
environment: production
3839
delete_missing_settings: 'true'
40+
edge_app_id: ${{ secrets.EDGE_APP_ID || vars.PRODUCTION_EDGE_APP_ID }}

‎screenly.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
syntax: manifest_v1
3-
id: 01KHKD38EETEJEB0CE3W4YSXFH
43
description: Screenly Simple Timer Edge App
54
icon: https://playground.srly.io/edge-apps/simple-timer/static/img/icon.svg
65
author: Screenly, Inc.

‎screenly_qc.yml‎

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)