From 2918380268bf76c1a66b054c30cd18c749c2822c Mon Sep 17 00:00:00 2001 From: Oskar Manhart <52569953+oskardotglobal@users.noreply.github.com> Date: Sat, 11 Jul 2026 16:27:51 +0200 Subject: [PATCH 1/2] Rebuild site when content changes Depends on https://github.com/spark-hpi/website/pull/11 --- .github/workflows/deploy.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/deploy.yaml diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..bec1a03 --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -0,0 +1,24 @@ +name: Trigger Pages Build + +on: + push: + branches: [ main ] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Trigger build in website repo + uses: actions/github-script@v9 + with: + script: | + await github.rest.repos.createDispatchEvent({ + owner: 'spark-hpi', + repo: 'website', + event_type: 'content-updated', + client_payload: { + content_repo: '${{ github.repository }}', + commit_sha: '${{ github.sha }}', + message: 'Content updated, triggering pages build' + } + }); From 18f0afa166413fee8d2aed5f7761e802d66e1a3f Mon Sep 17 00:00:00 2001 From: Oskar Manhart <52569953+oskardotglobal@users.noreply.github.com> Date: Sat, 11 Jul 2026 16:29:36 +0200 Subject: [PATCH 2/2] Update deploy.yaml --- .github/workflows/deploy.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index bec1a03..5f6a5b3 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -11,6 +11,7 @@ jobs: - name: Trigger build in website repo uses: actions/github-script@v9 with: + github-token: ${{ secrets.PAT_TOKEN }} script: | await github.rest.repos.createDispatchEvent({ owner: 'spark-hpi',