-
Notifications
You must be signed in to change notification settings - Fork 115
43 lines (34 loc) · 1.02 KB
/
gh-pages-sync.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: GitHub Pages Sync
on:
workflow_dispatch:
schedule:
- cron: "0 * * * *"
defaults:
run:
shell: bash
permissions:
contents: write
jobs:
sync:
name: Sync Pages
runs-on: hiero-mirror-node-linux-medium
steps:
- name: Harden Runner
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: "hashgraph/hedera-mirror-node"
ref: gh-pages
fetch-depth: "0"
token: ${{ secrets.GH_ACCESS_TOKEN_HG }}
- name: Add Remote
run: git remote add HIERO https://github.com/hiero-ledger/hiero-mirror-node.git
- name: Get the latest from HIERO
run: git fetch HIERO
- name: Sync gh-pages locally
run: git rebase --merge HIERO/gh-pages
- name: Push updates
run: git push --force --set-upstream origin gh-pages