Skip to content

Commit c483620

Browse files
committed
Fix docs preview
1 parent 650937b commit c483620

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/pdf-at-pr.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
# This workflow will install Python dependencies and generate PDF file at PR
2-
name: Create offline documentation on PR
2+
name: Create docs preview on PR
33

44
on:
55
pull_request:
66
types: [opened, reopened, synchronize, labeled]
77
workflow_dispatch:
88

9+
permissions:
10+
contents: write
11+
912
jobs:
1013
build:
1114
runs-on: ubuntu-latest
@@ -50,7 +53,7 @@ jobs:
5053
rsync -av ../documentation/site/. ${{ github.event.number }}
5154
git config user.name github-actions
5255
git config user.email [email protected]
53-
git add .
56+
git add .
5457
git commit -m "Updating repo" || true
5558
git push origin www || true
5659
@@ -59,7 +62,9 @@ jobs:
5962
repo-token: "${{ secrets.GITHUB_TOKEN }}"
6063
body-template: |
6164
62-
[![Create offline documentation on PR](https://github.com/armbian/documentation/actions/workflows/pdf-at-pr.yaml/badge.svg)](https://github.com/armbian/documentation/actions/workflows/pdf-at-pr.yaml)
63-
Documentation website preview will be available in few minutes:
65+
[![Create docs preview on PR](https://github.com/armbian/documentation/actions/workflows/pdf-at-pr.yaml/badge.svg)](https://github.com/armbian/documentation/actions/workflows/pdf-at-pr.yaml)
66+
67+
Documentation website preview will be available in a few minutes:
68+
6469
<a href=https://armbian.github.io/documentation/${{ github.event.number }}><kbd> <br> Open WWW preview <br> </kbd></a>
65-
body-update-action: 'suffix'
70+
body-update-action: 'suffix'

0 commit comments

Comments
 (0)