Splux Linux

source-based Linux using SPS

SPS · log · files · refs · tags · releases · people · languages · GitHub · commit

64b61a7


ci: ping the site on every main push

Date
Commit64b61a7f302db1661d45a3f9f1786865a37ae98d
GitHubmirror

Parents

Stat

 .github/workflows/notify-site.yml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Diff

diff --git a/.github/workflows/notify-site.yml b/.github/workflows/notify-site.yml
index 7bc859b..8c6c23f 100644
--- a/.github/workflows/notify-site.yml
+++ b/.github/workflows/notify-site.yml
@@ -2,7 +2,9 @@ name: notify-site
 
 on:
   release:
-    types: [published]
+    types: [published, edited]
+  push:
+    branches: [main]
   workflow_dispatch:
 
 jobs:
@@ -14,7 +16,7 @@ jobs:
           GH_TOKEN: ${{ secrets.SPLUX_SITE_TOKEN }}
         run: |
           if [ -z "$GH_TOKEN" ]; then
-            printf '%s\n' "SPLUX_SITE_TOKEN unset; splux-site cron will pick this up"
+            printf '%s\n' "SPLUX_SITE_TOKEN unset; splux-site rebuilds every five minutes and the news page also reads GitHub in the browser"
             exit 0
           fi
           gh api --method POST repos/RobertFlexx/splux-site/dispatches \