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 85bbe01 commit 445fe5aCopy full SHA for 445fe5a
.github/workflows/docs-deploy.yml
@@ -1,19 +1,16 @@
1
name: Deploy Documentation
2
3
on:
4
- push:
5
- branches:
6
- - docs-build
7
- paths:
8
- - docs/**
9
- - src/**
10
workflow_dispatch:
11
12
jobs:
13
docs:
14
- uses: codeshelldev/gh-actions/.github/workflows/docs-deploy.yml@main
15
- name: Deploy
16
- with:
17
- branch: docs-build
18
- secrets:
19
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Deploy 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