-
Notifications
You must be signed in to change notification settings - Fork 46
40 lines (39 loc) · 1.41 KB
/
update-ancillary-files.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
name: Update the ancillary files
on:
push:
branches:
- master
workflow_dispatch:
jobs:
update-ancillary-files:
runs-on: ubuntu-latest
concurrency:
group: javadoc-io-${{ github.workflow }}-${{ github.event.number || github.ref }}
steps:
- name: Checkout
uses: danysk/[email protected]
with:
token: ${{ secrets.DEPLOYMENT_TOKEN }}
- uses: DanySK/[email protected]
with:
pre-build-command: rm javadoc-io.json
build-command: |
./gradlew dokkaHtmlCollector dokkaJavadocCollector --parallel --dry-run
./gradlew kotlinUpgradeYarnLock --parallel
check-command: |
git config user.name 'Danilo Pianini [bot]'
git config user.email '[email protected]'
if git status | grep -P '^\s+modified:\s+javadoc-io\.json$'; then
git add javadoc-io.json
git commit -m 'chore(build): update the javadoc.io cache'
git pull --rebase
git push
fi
if git status | grep -P '^\s+modified:\s+kotlin-js-store\/yarn\.lock$'; then
git add kotlin-js-store/yarn.lock
git commit -m 'chore(build): actualize the `yarn.lock` file'
git pull --rebase
git push
fi
should-run-codecov: false
should-deploy: false