-
Notifications
You must be signed in to change notification settings - Fork 5
47 lines (38 loc) · 1.77 KB
/
update-autodoc.yml
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
44
45
46
47
name: update autodoc
on:
schedule:
- cron: "0 6 * * 01" # every monday at 6 am (UTC)
workflow_dispatch:
jobs:
sync-autodoc:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: download autodoc markdowns
run: |
destination=content/en/documentation/autodoc
wget https://raw.githubusercontent.com/eclipse-edc/Connector/refs/heads/gh-pages/autodoc/autodoc.md -O ${destination}/connector.md
wget https://raw.githubusercontent.com/eclipse-edc/IdentityHub/refs/heads/gh-pages/autodoc/autodoc.md -O ${destination}/identity-hub.md
wget https://raw.githubusercontent.com/eclipse-edc/FederatedCatalog/refs/heads/gh-pages/autodoc/autodoc.md -O ${destination}/federated-catalog.md
sed -i "1s;^;---\n title: Connector\n weight: 10\n---\n\n;" ${destination}/connector.md
sed -i "1s;^;---\n title: Identity-Hub\n weight: 20\n---\n\n;" ${destination}/identity-hub.md
sed -i "1s;^;---\n title: Federated-Catalog\n weight: 30\n---\n\n;" ${destination}/federated-catalog.md
- run: |
git config user.name "eclipse-edc-bot"
git config user.email "[email protected]"
git checkout -b update-autodoc
git add .
git commit -m "docs: update autodoc markdowns"
git push origin update-autodoc
- name: Create pull request
uses: thomaseizinger/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
head: update-autodoc
base: main
title: "docs: update autodoc"
reviewers: ${{ github.actor }}
body: |-
This PR updates autodoc to the latest released versions.