Skip to content

Commit

Permalink
Update DocsNav.yml (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
shravanngoswamii authored Jul 2, 2024
1 parent ce00d76 commit 03203e2
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/DocsNav.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
name: Add Navbar

on:
workflow_run:
workflows: ["Documentation"] # add workflow names that generates docs in this list like `workflows: ["Docs Workflow", "Previews Workflow]`
types:
- completed
push:
branches:
- gh-pages # Triggers the workflow on push events to gh-pages branch
workflow_dispatch: # Allows manual triggering

jobs:
add-navbar:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
permissions:
contents: write
steps:
Expand Down Expand Up @@ -45,4 +43,4 @@ jobs:
git push "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" gh-pages
else
echo "No changes to commit"
fi
fi

0 comments on commit 03203e2

Please sign in to comment.