Updated API retries behavior - increase attempts and add jitter (#148) #26
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: Generate release docs and commit to documentation branch (which is published to github pages) | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
dokka: | |
runs-on: ubuntu-22.04 | |
env: | |
CI_COMMIT_MESSAGE: Generated docs for ${{ github.sha }} | |
GH_TOKEN: ${{ secrets.GH_ACTION_ACCESS_TOKEN }} | |
steps: | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
ref: documentation | |
fetch-depth: 0 | |
token: ${{ secrets.GH_ACTION_ACCESS_TOKEN }} | |
- name: Git config | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git fetch origin master | |
- name: Merge latest from master | |
run: | | |
git merge origin/master --commit --no-edit --strategy-option theirs | |
- name: Generate Dokka documentation | |
run: | | |
./gradlew dokkaHtmlMultiModule | |
git add ./docs | |
- name: Commit and push documentation | |
run: | | |
if [ $(git status -s -uno | wc -l) -eq 0 ]; then | |
echo "No documentation to change" | |
exit 0 | |
fi | |
git commit -m "${{ env.CI_COMMIT_MESSAGE }}" | |
git push |