File tree Expand file tree Collapse file tree 6 files changed +372
-12
lines changed Expand file tree Collapse file tree 6 files changed +372
-12
lines changed Original file line number Diff line number Diff line change
1
+ name : Verify Docs Changelog
2
+
3
+ on :
4
+ pull_request :
5
+
6
+ permissions :
7
+ contents : read
8
+
9
+ jobs :
10
+ verify-platforms-table :
11
+ name : Run Verification
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - name : Checkout Sources
15
+ uses : actions/checkout@v4
16
+ with :
17
+ fetch-depth : 0
18
+
19
+ - name : Setup Gradle
20
+ uses : gradle/actions/setup-gradle@v4
21
+
22
+ - name : Check Platforms Table
23
+ run : ./gradlew updateDocsChangelog --info --stacktrace
24
+
25
+ - name : Check if changelog is up-to-date
26
+ run : |
27
+ if [[ -n "$(git status --porcelain | grep docs/pages/kotlinx-rpc/topics/changelog.md)" ]]; then
28
+ echo "Changelog is not up to date. Please run './gradlew updateDocsChangelog' and commit changes"
29
+ exit 1
30
+ fi
Original file line number Diff line number Diff line change 38
38
with :
39
39
fetch-depth : 0
40
40
41
- - name : Create stub changelog.md file
42
- run : echo "# Changelog" > docs/pages/kotlinx-rpc/topics/changelog.md
43
-
44
41
- name : Build docs using Writerside Docker builder
45
42
uses : JetBrains/writerside-github-action@v4
46
43
with :
100
97
101
98
- name : Unzip Dokka
102
99
run : unzip -O UTF-8 -qq '${{ env.DOKKA_ARTIFACT }}' -d ${{ env.ASSEMBLE_DIR }}/api
103
-
104
- - name : Move changelog.md to the docs root
105
- run : mv ${{ env.ASSEMBLE_DIR }}/api/changelog.md ${{ env.ASSEMBLE_DIR }}/changelog.md
106
100
107
101
- name : Update sitemap.xml
108
102
run : chmod +x updateSitemap.sh && ./updateSitemap.sh ${{ env.ASSEMBLE_DIR }}/sitemap.xml ${{ env.ASSEMBLE_DIR }}/api
Original file line number Diff line number Diff line change 13
13
steps :
14
14
- name : Checkout Sources
15
15
uses : actions/checkout@v4
16
+ with :
17
+ fetch-depth : 0
16
18
- name : Setup Gradle
17
19
uses : gradle/actions/setup-gradle@v4
18
20
- name : Check Platforms Table
19
- run : ./gradlew verifyPlatformTable --no-configuration-cache
21
+ run : ./gradlew verifyPlatformTable --no-configuration-cache --info --stacktrace
Original file line number Diff line number Diff line change 1
1
api /**
2
- kotlinx-rpc /topics /changelog.md
You can’t perform that action at this time.
0 commit comments