We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 445fe5a commit 93773f1Copy full SHA for 93773f1
.github/workflows/docs-update.yml
@@ -1,20 +1,16 @@
1
name: Update Documentation
2
3
on:
4
- push:
5
- branches:
6
- - docs
7
- paths:
8
- - docs/**
9
workflow_dispatch:
10
11
jobs:
12
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 }}
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Update Documentation
+ if: ${{ github.ref == 'refs/heads/main' }}
+ run: |
+ echo "❌ This workflow cannot be run from the main branch."
+ echo "Please pin to a release, use another branch or commit SHA instead of @main."
+ exit 1
0 commit comments