Skip to content

Commit

Permalink
Update workflows after enabled custom domain
Browse files Browse the repository at this point in the history
  • Loading branch information
masesdevelopers authored Nov 2, 2023
1 parent dd86d80 commit f9d51f3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
27 changes: 20 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
run: dotnet build --no-incremental --configuration Release /p:Platform="Any CPU" src\CLIParser.sln

- name: Clear documentation folder
run: Remove-Item .\docs\* -Recurse -Force -Exclude _config.yml
run: Remove-Item .\docs\* -Recurse -Force -Exclude _config.yml,CNAME

- name: Build documentation
run: |
Expand All @@ -94,12 +94,25 @@ jobs:
echo "GITHUB_COMMIT_MESSAGE=$(echo $GITHUB_SHA | cut -c 1-7)" >> $GITHUB_ENV
shell: bash

- name: Commit changes
- name: Request a PR to commit changes
if: ${{ github.repository_owner == 'masesgroup'}} #do not push any changes outside main repo
uses: EndBug/add-and-commit@v5
uses: peter-evans/create-pull-request@v5
with:
author_name: github-actions
author_email: 41898282+github-actions[bot]@users.noreply.github.com
add: '.\docs\*.*'
message: Update documentation after commit ${{ env.GITHUB_COMMIT_MESSAGE }}
branch-suffix: short-commit-hash
add-paths: docs/*.*
commit-message: Update documentation after commit ${{ env.GITHUB_COMMIT_MESSAGE }}
title: Changes by GitHub action
body: Automated changes by GitHub action
reviewers: masesdevelopers
assignees: masesdevelopers
labels: documentation, enhancement

# - name: Commit changes
# if: ${{ github.repository_owner == 'masesgroup'}} #do not push any changes outside main repo
# uses: EndBug/add-and-commit@v9
# with:
# author_name: github-actions
# author_email: 41898282+github-actions[bot]@users.noreply.github.com
# add: '.\docs\*.*'
# message: Update documentation after commit ${{ env.GITHUB_COMMIT_MESSAGE }}

2 changes: 1 addition & 1 deletion .github/workflows/pullrequest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
run: dotnet build --no-incremental --configuration Release /p:Platform="Any CPU" src\CLIParser.sln

- name: Clear documentation folder
run: Remove-Item .\docs\* -Recurse -Force -Exclude _config.yml
run: Remove-Item .\docs\* -Recurse -Force -Exclude _config.yml,CNAME

- name: Build documentation
run: |
Expand Down

0 comments on commit f9d51f3

Please sign in to comment.