Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 2

updates:
- package-ecosystem: 'bun'
directory: '/'
schedule:
interval: 'monthly'
groups:
bun:
patterns:
- '*'

- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'monthly'
groups:
github-actions:
patterns:
- '*'
18 changes: 18 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Checks

on:
push:
branches:
- development
- main
pull_request:
branches:
- development
- main

jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: Screenly/edge-apps-actions/checks@v1
40 changes: 40 additions & 0 deletions .github/workflows/initialize-edge-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
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@v7
with:
ref: ${{ inputs.environment == 'production' && 'main' || github.ref }}
- uses: Screenly/edge-apps-actions/initialize@v1
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 }}
38 changes: 38 additions & 0 deletions .github/workflows/update-edge-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Update Edge App

on:
workflow_dispatch:
push:
branches:
- development
- main

run-name: Updating Simple Table App in ${{ github.event_name == 'workflow_dispatch' && 'stage' || (github.ref == 'refs/heads/main' && 'production' || 'stage') }}

jobs:
deploy-stage:
name: Updating Simple Table App in stage
runs-on: ubuntu-latest
if: (github.event_name == 'push' && github.ref == 'refs/heads/development') || github.event_name == 'workflow_dispatch'
environment: stage
steps:
- uses: actions/checkout@v7
- uses: Screenly/edge-apps-actions/update@v1
with:
screenly_api_token: ${{ secrets.SCREENLY_API_TOKEN }}
environment: stage
delete_missing_settings: 'true'

deploy-production:
name: Updating Simple Table App in production
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
environment: production
steps:
- uses: actions/checkout@v7
- uses: Screenly/edge-apps-actions/update@v1
with:
screenly_api_token: ${{ secrets.SCREENLY_API_TOKEN }}
environment: production
delete_missing_settings: 'true'