-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from emproof-com/chore/move-docs-to-doc-branch
Change CI to push to cpp-docs branch
- Loading branch information
Showing
3 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: update-docs | ||
name: docs | ||
|
||
on: | ||
push: | ||
|
@@ -32,12 +32,11 @@ jobs: | |
CI_COMMIT_AUTHOR: update-docs-ci | ||
# only commit and push changes on the main branch after the mr has been pushed. | ||
if: github.event_name == 'push' | ||
# Force-adds the docs directory, because the docs directory is still in .gitignore | ||
# to discourage changing the docs directory in a commit. | ||
run: | | ||
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}" | ||
git config --global user.email "[email protected]" | ||
git add -f docs | ||
git checkout cpp-docs | ||
git add doc | ||
git commit -m "${{ env.CI_COMMIT_MESSAGE }}" | ||
git push | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters