mirror of
https://github.com/OpenLogics/MewtocolNet.git
synced 2025-12-06 03:01:24 +00:00
(pipeline) docbuilder custom branch
This commit is contained in:
13
.github/workflows/test-pipeline.yml
vendored
13
.github/workflows/test-pipeline.yml
vendored
@@ -41,17 +41,20 @@ jobs:
|
|||||||
|
|
||||||
- name: 'Run docbuilder'
|
- name: 'Run docbuilder'
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: dotnet run --project "./AutoTools.DocBuilder/AutoTools.DocBuilder.csproj" "./AutoTools.DocBuilder/Docs/plctypes.md"
|
run: |
|
||||||
|
dotnet run --project "./AutoTools.DocBuilder/AutoTools.DocBuilder.csproj" "~/plctypes.md"
|
||||||
|
|
||||||
- name: 'Commit generated docs to branch'
|
- name: 'Switch and Commit to docs branch'
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
git fetch
|
git fetch
|
||||||
git checkout ${{ steps.extract_branch.outputs.branch }}
|
|
||||||
git config --local user.email "action@github.com"
|
git config --local user.email "action@github.com"
|
||||||
git config --local user.name "GitHub Action"
|
git config --local user.name "GitHub Action"
|
||||||
git add "./AutoTools.DocBuilder/Docs/plctypes.md" -f &&
|
git checkout --orphan ${{ steps.extract_branch.outputs.branch }}_docs
|
||||||
git commit --amend --no-edit
|
git rm -rf .
|
||||||
|
cp ~/plctypes.md ./plctypes.md &&
|
||||||
|
git add "./plctypes.md" -f &&
|
||||||
|
git commit -m "Update documentation"
|
||||||
|
|
||||||
- name: 'Push docs commit'
|
- name: 'Push docs commit'
|
||||||
uses: ad-m/github-push-action@master
|
uses: ad-m/github-push-action@master
|
||||||
|
|||||||
Reference in New Issue
Block a user