diff --git a/.github/workflows/initialize-edge-app.yml b/.github/workflows/initialize-edge-app.yml index 29fce8e..48932f3 100644 --- a/.github/workflows/initialize-edge-app.yml +++ b/.github/workflows/initialize-edge-app.yml @@ -32,9 +32,10 @@ jobs: - uses: actions/checkout@v7 with: ref: ${{ inputs.environment == 'production' && 'main' || github.ref }} - - uses: Screenly/edge-apps-actions/initialize@v1 + - uses: Screenly/edge-apps-actions/initialize@f4ccd2bd50db5fb0a5147d287ac03cafe552d29b 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 }} + edge_app_id: ${{ secrets.EDGE_APP_ID || (inputs.environment == 'production' && vars.PRODUCTION_EDGE_APP_ID || (inputs.environment == 'stage' && vars.STAGE_EDGE_APP_ID)) }} diff --git a/.github/workflows/update-edge-app.yml b/.github/workflows/update-edge-app.yml index 252a259..ab321b2 100644 --- a/.github/workflows/update-edge-app.yml +++ b/.github/workflows/update-edge-app.yml @@ -18,11 +18,12 @@ jobs: environment: stage steps: - uses: actions/checkout@v7 - - uses: Screenly/edge-apps-actions/update@v1 + - uses: Screenly/edge-apps-actions/update@f4ccd2bd50db5fb0a5147d287ac03cafe552d29b with: screenly_api_token: ${{ secrets.SCREENLY_API_TOKEN }} environment: stage delete_missing_settings: 'true' + edge_app_id: ${{ secrets.EDGE_APP_ID || vars.STAGE_EDGE_APP_ID }} deploy-production: name: Updating Qr Code App in production @@ -31,8 +32,9 @@ jobs: environment: production steps: - uses: actions/checkout@v7 - - uses: Screenly/edge-apps-actions/update@v1 + - uses: Screenly/edge-apps-actions/update@f4ccd2bd50db5fb0a5147d287ac03cafe552d29b with: screenly_api_token: ${{ secrets.SCREENLY_API_TOKEN }} environment: production delete_missing_settings: 'true' + edge_app_id: ${{ secrets.EDGE_APP_ID || vars.PRODUCTION_EDGE_APP_ID }} diff --git a/screenly.yml b/screenly.yml index 2dc4f87..c1d1d2f 100644 --- a/screenly.yml +++ b/screenly.yml @@ -1,6 +1,5 @@ --- syntax: manifest_v1 -id: 01KBHC8GG9WN8HNYC2VSGQFZ20 description: A QR code generator app with customizable header icon: https://playground.srly.io/edge-apps/qr-code/static/img/icon.svg author: Screenly, Inc. diff --git a/screenly_qc.yml b/screenly_qc.yml deleted file mode 100644 index 01e835f..0000000 --- a/screenly_qc.yml +++ /dev/null @@ -1,53 +0,0 @@ ---- -syntax: manifest_v1 -id: 01KBG6Q8K9AVF1N3HYR95QRKWP -description: A QR code generator app with customizable header -icon: https://playground.srly.io/edge-apps/qr-code/static/img/icon.svg -author: Screenly, Inc. -categories: - - Utilities - - Productivity -ready_signal: true -settings: - call_to_action: - type: string - default_value: Scan to visit - title: Call to Action - optional: true - help_text: | - Enter a short call-to-action text (e.g., "Scan to visit", "Scan here", "Point your camera"). - display_errors: - type: string - default_value: 'false' - title: Display Errors - optional: true - help_text: - properties: - advanced: true - help_text: For debugging purposes to display errors on the screen. - type: boolean - schema_version: 1 - enable_utm: - type: string - default_value: 'true' - title: Enable UTM - optional: true - help_text: - properties: - advanced: true - help_text: Enable UTM parameter tracking by appending UTM query strings to the URL before generating the QR code. - type: boolean - schema_version: 1 - headline: - type: string - default_value: Visit our website for exclusive offers - title: Headline - optional: false - help_text: | - Enter the main headline that describes what the QR code links to. This can be a full sentence (e.g., "Visit our website for exclusive offers", "Download our app to get started", "View our full menu and daily specials"). - url: - type: string - default_value: https://www.screenly.io/ - title: URL - optional: false - help_text: Enter the URL that will be encoded into the QR code.