Skip to content

Commit b403f66

Browse files
authored
ci: Add gh-pages-sync workflow to json-rpc-relay (#3578)
**Description**: Adds the gh-pages-sync.yaml workflow to sync the public hiero-ledger/hiero-json-rpc-relay repository and the private hashgraph/hedera-json-rpc-relay. **Related Issue(s)**: Fixes #3577 Signed-off-by: Roger Barker <roger.barker@swirldslabs.com>
1 parent 92c8143 commit b403f66

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/gh-pages-sync.yaml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
name: GitHub Pages Sync
4+
on:
5+
workflow_dispatch:
6+
schedule:
7+
- cron: "0 * * * *"
8+
9+
defaults:
10+
run:
11+
shell: bash
12+
13+
permissions:
14+
contents: write
15+
16+
jobs:
17+
sync:
18+
name: Sync Pages
19+
runs-on: hiero-smart-contracts-linux-medium
20+
21+
steps:
22+
- name: Harden Runner
23+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
24+
with:
25+
egress-policy: audit
26+
27+
- name: Checkout
28+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
29+
with:
30+
repository: "hashgraph/hedera-json-rpc-relay"
31+
ref: gh-pages
32+
fetch-depth: "0"
33+
token: ${{ secrets.GH_ACCESS_TOKEN_HG }}
34+
35+
- name: Add Remote
36+
run: git remote add HIERO https://github.com/hiero-ledger/hiero-json-rpc-relay.git
37+
38+
- name: Get the latest from HIERO
39+
run: git fetch HIERO
40+
41+
- name: Sync gh-pages locally
42+
run: git rebase --merge HIERO/gh-pages
43+
44+
- name: Push updates
45+
run: git push --force --set-upstream origin gh-pages

0 commit comments

Comments
 (0)