Skip to content

Commit 03203e2

Browse files
Update DocsNav.yml (#142)
1 parent ce00d76 commit 03203e2

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/DocsNav.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
name: Add Navbar
22

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

109
jobs:
1110
add-navbar:
1211
runs-on: ubuntu-latest
13-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1412
permissions:
1513
contents: write
1614
steps:
@@ -45,4 +43,4 @@ jobs:
4543
git push "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" gh-pages
4644
else
4745
echo "No changes to commit"
48-
fi
46+
fi

0 commit comments

Comments
 (0)