Splux Linux

source-based Linux using SPS

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

38bad59


ci: request a Splux site rebuild after live ISO releases

Date
Commit38bad5913b0035918b8998fb0ecc6ed769904b44
GitHubmirror

Parents

Stat

 .github/workflows/notify-site.yml | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

Diff

diff --git a/.github/workflows/notify-site.yml b/.github/workflows/notify-site.yml
new file mode 100644
index 0000000..7bc859b
--- /dev/null
+++ b/.github/workflows/notify-site.yml
@@ -0,0 +1,21 @@
+name: notify-site
+
+on:
+  release:
+    types: [published]
+  workflow_dispatch:
+
+jobs:
+  ping:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Request Splux site rebuild
+        env:
+          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"
+            exit 0
+          fi
+          gh api --method POST repos/RobertFlexx/splux-site/dispatches \
+            -f event_type=rebuild