Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create first PR to avoid direct push #153

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 27 additions & 16 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ jobs:
- name: Recompile to create nuget packages
run: dotnet build --no-incremental --configuration Release /p:Platform="Any CPU" src\net\KEFCore.sln

- uses: actions/upload-artifact@v3
with:
name: KEFCore
path: .\bin\*nupkg

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

Expand All @@ -72,21 +77,27 @@ jobs:
cd src\documentation
docfx

- uses: actions/upload-artifact@v3
with:
name: KEFCore
path: .\bin\*nupkg

- name: Extract commit SHA
run: |
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@v9
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 }}
committer: 41898282+github-actions[bot]@users.noreply.github.com
branch-suffix: short-commit-hash
path: '.\docs\*.*'
title: Changes by GitHub action
body: Automated changes by GitHub action

# - name: Extract commit SHA
# if: ${{ github.repository_owner == 'masesgroup'}} #do not push any changes outside main repo
# run: |
# echo "GITHUB_COMMIT_MESSAGE=$(echo $GITHUB_SHA | cut -c 1-7)" >> $GITHUB_ENV
# shell: bash
#
# - 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 }}