diff --git a/.github/workflows/doxygen_generate.yml b/.github/workflows/doxygen_generate.yml index 7d91bf59..41fcec8a 100644 --- a/.github/workflows/doxygen_generate.yml +++ b/.github/workflows/doxygen_generate.yml @@ -1,8 +1,8 @@ name: Generate API Docs on: - # Runs workflow 'automatically' when a pull request - # for the development branch is closed. + # Runs workflow 'automatically' when a pushed + # to the development branch. push: branches: ["development"] # Don't apply gitignore rules, this allows us to push the generated docs. @@ -27,8 +27,9 @@ concurrency: jobs: run-doxygen: - # Only run this step if the action was triggered manually on the development branch. - if: ${{ github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/development' }} + # Only run this step if the action was triggered automatically and the pull request merged on the development branch. + # Or, it was triggered manually on the development branch. + if: ${{ github.event_name == 'push' || ( github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/development' ) }} environment: name: github-pages