diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index ee86dc7b..b633c7ea 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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 @@ -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 }}