Generate Doxygen Documentation #16
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 Doxygen Documentation | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
generate-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout current repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Create new branch | |
run: | | |
git config --global push.autoSetupRemote true | |
git config --local user.email "[email protected]" | |
git config --local user.name "doxygen-bot" | |
git checkout -b update-doxygen-documentation | |
- name: Clone external repository | |
run: | | |
git clone https://github.com/sinricpro/esp8266-esp32-sdk | |
- name: Install Doxygen | |
run: | | |
sudo apt-get install -y doxygen graphviz | |
- name: Generate Documentation | |
run: | | |
doxygen Doxyfile | |
- name: Commit changes | |
run: | | |
rm -rf ./esp8266-esp32-sdk | |
ls -lR | |
git add docs/* | |
git commit -m "Update Doxygen documentation" || echo "No changes to commit" | |
git rm --cached esp8266-esp32-sdk | |
git push -u origin update-doxygen-documentation | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commit-message: Update Doxygen documentation | |
title: 'Update Doxygen documentation' | |
body: 'This PR updates the Doxygen documentation.' | |
branch: update-doxygen-documentation | |
base: master |