Skip to content

Commit

Permalink
Correct committing changes for pull requests (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrossberndt authored Aug 25, 2024
1 parent 7a87019 commit c8afc28
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,17 @@ jobs:
- name: Remove generated documentation tables
run: rm -rf ./docs/generated/documentation-tables

- name: Commit changes
- name: Commit changes for push
if: github.event_name == 'push' # only if this is a push to a branch
uses: EndBug/add-and-commit@v9 # https://github.com/marketplace/actions/add-commit
with:
default_author: github_actions
message: 'fixup! Fixed linting errors'
push: --set-upstream origin "${{steps.get-branch-name.outputs.BRANCH_NAME}}"

- name: Commit changes for pull_request
if: github.event_name == 'pull_request' # only if this is a pull_request to a branch
uses: EndBug/add-and-commit@v9 # https://github.com/marketplace/actions/add-commit
with:
default_author: github_actions
message: 'fixup! Fixed linting errors'

0 comments on commit c8afc28

Please sign in to comment.