chore(build): update the javadoc.io cache #2123
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |