From 03203e2923c31167c79943313f8ad6a8cff85157 Mon Sep 17 00:00:00 2001 From: Shravan Goswami <123811742+shravanngoswamii@users.noreply.github.com> Date: Tue, 2 Jul 2024 20:02:49 +0530 Subject: [PATCH] Update DocsNav.yml (#142) --- .github/workflows/DocsNav.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/DocsNav.yml b/.github/workflows/DocsNav.yml index 3a91f0ad..c0c69b34 100644 --- a/.github/workflows/DocsNav.yml +++ b/.github/workflows/DocsNav.yml @@ -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: @@ -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 \ No newline at end of file + fi