Skip to content

Commit 93773f1

Browse files
authored
Update docs-update.yml (#79)
1 parent 445fe5a commit 93773f1

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

.github/workflows/docs-update.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
11
name: Update Documentation
22

33
on:
4-
push:
5-
branches:
6-
- docs
7-
paths:
8-
- docs/**
94
workflow_dispatch:
105

116
jobs:
127
docs:
13-
uses: codeshelldev/gh-actions/.github/workflows/docs-update.yml@main
14-
name: Template Docs
15-
with:
16-
template-path: docs/
17-
output-path: docs/
18-
output-branch: docs-build
19-
secrets:
20-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Update Documentation
12+
if: ${{ github.ref == 'refs/heads/main' }}
13+
run: |
14+
echo "❌ This workflow cannot be run from the main branch."
15+
echo "Please pin to a release, use another branch or commit SHA instead of @main."
16+
exit 1

0 commit comments

Comments
 (0)