From c00d30f7fe62bb28849b248fef3fd15a0f9fa2ba Mon Sep 17 00:00:00 2001 From: masesdevelopers <94312179+masesdevelopers@users.noreply.github.com> Date: Mon, 30 Oct 2023 00:44:01 +0100 Subject: [PATCH] Create first PR to avoid direct push --- .github/workflows/build.yaml | 43 ++++++++++++++++++++++-------------- 1 file changed, 27 insertions(+), 16 deletions(-) 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 }}