Skip to content

Commit

Permalink
Merge pull request #5 from MissouriMRDT/hotfix/docs-action-trigger
Browse files Browse the repository at this point in the history
Fix Docs Action - Only Run On Merge To Dev
  • Loading branch information
ClayJay3 authored Nov 29, 2023
2 parents 608453f + 536d54a commit e219f9f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/doxygen_generate.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Generate API Docs

on:
# Runs workflow 'automatically' when a pull request
# for the development branch is made
pull_request:
# 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.
paths-ignore:
Expand All @@ -26,6 +26,10 @@ concurrency:

jobs:
run-doxygen:
# 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
url: ${{ steps.deployment.outputs.page_url }}
Expand All @@ -35,6 +39,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Fix Dubious Ownership
run: git config --global --add safe.directory /opt/RoveComm_CPP

- name: Setup Pages
uses: actions/configure-pages@v3

Expand Down

0 comments on commit e219f9f

Please sign in to comment.