Skip to content

Commit aedb22f

Browse files
authored
SapMachine SAP#1930: gh pages deployed by remote trigger
1 parent 1b4f7a9 commit aedb22f

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/build-gh-pages.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ name: Build and deploy sapmachine.io page
44
on:
55
# Allows to run this workflow manually from the Actions tab
66
workflow_dispatch:
7-
8-
# Listens to repository dispatch events, originating from pushes to the gh-pages branch in SAP/SapMachine-infrastructure
9-
repository_dispatch:
10-
types: [gh-page-build]
7+
inputs:
8+
event_type:
9+
description: 'Event type'
10+
required: false
11+
default: 'gh-page-build'
1112

1213
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1314
permissions:
@@ -26,11 +27,13 @@ jobs:
2627
build:
2728
runs-on: ubuntu-latest
2829
steps:
29-
- name: Checkout
30-
uses: actions/checkout@v4
30+
- name: Checkout repo from GitHub Tools SAP
31+
uses: actions/checkout@v5
3132
with:
32-
repository: 'SAP/SapMachine-infrastructure'
33-
ref: 'gh-pages'
33+
repository: SapMachine/SapMachineIOPage
34+
token: ${{ secrets.GHE_PAT }}
35+
github-server-url: https://github.tools.sap
36+
ref: 'main'
3437
- name: Setup Pages
3538
uses: actions/configure-pages@v5
3639
- name: Build with Jekyll

0 commit comments

Comments
 (0)