Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

Commit e51208d

Browse files
authored
Merge pull request #229 from codeoverflow-org/update-docs-action-releases
Run update doc action also on release branches
2 parents 5c684ac + 2791b40 commit e51208d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/docs.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ name: Update docs
33

44
on:
55
push:
6-
branches: [ master ]
6+
branches:
7+
- master
8+
- "releases/**"
79

810
jobs:
911
build:
@@ -21,9 +23,10 @@ jobs:
2123
- name: Checkout docs
2224
uses: actions/checkout@v2
2325
with:
24-
repository: codeoverflow-org/nodecg-io-docs
26+
repository: codeoverflow-org/nodecg-io-docs
2527
path: docs
2628
ssh-key: ${{ secrets.DOCS_SSH_KEY }}
29+
ref: ${{ github.event.push.ref }}
2730

2831
- name: Build docs
2932
run: python .scripts/build-docs.py
@@ -34,5 +37,5 @@ jobs:
3437
git config --global user.email "<>"
3538
git config --global user.name "codeoverflow-org"
3639
git add .
37-
git diff-index --quiet HEAD || git commit --message "Update generated documentation ( codeoverflow-org/nodecg-io@${{ github.sha }})"
38-
git push origin master
40+
git diff-index --quiet HEAD || git commit --message "Update generated documentation (codeoverflow-org/nodecg-io@${{ github.sha }})"
41+
git push origin "${GITHUB_REF#refs/heads/}"

0 commit comments

Comments
 (0)