Just want to know what it'll say if i try to push to the branch #8
Workflow file for this run
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: | |
release: | |
types: [released] | |
push: | |
branches: | |
- ecm/doc-bot | |
jobs: | |
dokka: | |
runs-on: ubuntu-22.04 | |
env: | |
CI_COMMIT_MESSAGE: Generated docs for ${{ github.sha }} | |
GH_TOKEN: ${{ github.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 | |
- name: Git config | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git fetch origin | |
- name: Update documentation branch from master | |
run: | | |
git merge origin/master -m "Merge changes from master for ${{ github.sha }}" --no-edit | |
- name: Generate Dokka documentation | |
run: ./gradlew dokkaHtmlMultiModule | |
- name: Commit and push documentation | |
run: | | |
git add . | |
git commit -m "${{ env.CI_COMMIT_MESSAGE }}" | |
git push -u origin documentation |