Skip to content

Commit

Permalink
Use PR instead to push documentation to add branch protection rules (#51
Browse files Browse the repository at this point in the history
)
  • Loading branch information
masesdevelopers committed Nov 5, 2023
1 parent 48e1c93 commit f8515d4
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -454,12 +454,16 @@ jobs:
echo "GITHUB_COMMIT_MESSAGE=$(echo $GITHUB_SHA | cut -c 1-7)" >> $GITHUB_ENV
shell: bash

- name: Commit changes
uses: EndBug/add-and-commit@v9
- name: Request a PR to commit changes
if: ${{ github.repository_owner == 'masesgroup'}} #do not push any changes outside main repo
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

0 comments on commit f8515d4

Please sign in to comment.