Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 33c4e45

Browse files
committed
Switch to called workflow
1 parent dffda25 commit 33c4e45

File tree

4 files changed

+34
-165
lines changed

4 files changed

+34
-165
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Build Image On Release
2+
3+
on:
4+
release:
5+
types: [ published ]
6+
7+
jobs:
8+
call-workflow:
9+
uses: linuxserver-labs/docker-actions/.github/workflows/build-image.yml@v1
10+
with:
11+
repo_owner: ${{ github.repository_owner }}
12+
app_name: "monit"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Check for update and release
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 * * * *'
7+
8+
jobs:
9+
call-workflow:
10+
uses: linuxserver-labs/docker-actions/.github/workflows/check-and-release.yml@v1
11+
with:
12+
repo_owner: ${{ github.repository_owner }}
13+
app_name: "omada-controller"
14+
release_type: "script"

.github/workflows/ci.yml

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

get-version.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
3+
APP_VERSION=$(curl -sL https://www.tp-link.com/uk/support/download/omada-software-controller/ \
4+
| grep -E -m 1 -io 'https?://[^ ]+.tar.gz' \
5+
| awk -F "/" '{print $NF}' \
6+
| awk -F '_' '{print $4}');
7+
8+
printf "%s" "${APP_VERSION}"

0 commit comments

Comments
 (0)