Skip to content

Commit

Permalink
Exclude temporary files from genrated pull requests (#8)
Browse files Browse the repository at this point in the history
Fix #7
  • Loading branch information
r7kamura authored Jul 23, 2022
1 parent 0fb6f9d commit f82df2e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Fixed

- Exclude temporary files from genrated pull requests.

### 0.9.0 - 2022-06-08

### Added
Expand Down
6 changes: 4 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ runs:
with:
bundler-cache: true
ruby-version: 3.1
- run: gem install --no-document rubocop_todo_corrector:0.7.1
- run: gem install --no-document rubocop_todo_corrector:0.8.0
shell: bash
- uses: actions/checkout@v3
- name: rubocop_todo_corrector bundle
Expand All @@ -54,12 +54,14 @@ runs:
shell: bash
- name: git push
run: |
description=$(rubocop_todo_corrector describe --cop-name="${{ steps.pick.outputs.cop_name }}")
rubocop_todo_corrector clean
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
branch_name="rubocop-todo-corrector-${GITHUB_RUN_ID}"
git switch --create "${branch_name}"
git add .
rubocop_todo_corrector describe --cop-name="${{ steps.pick.outputs.cop_name }}" | git commit --file=-
git commit --message "${description}"
git push --set-upstream origin "${branch_name}"
shell: bash
- name: gh pr create
Expand Down

0 comments on commit f82df2e

Please sign in to comment.