From f82df2efe362bac9b93c2bc88dd30acabdcfbb47 Mon Sep 17 00:00:00 2001 From: Ryo Nakamura Date: Sat, 23 Jul 2022 10:04:54 +0900 Subject: [PATCH] Exclude temporary files from genrated pull requests (#8) Fix #7 --- CHANGELOG.md | 4 ++++ action.yml | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e0aec5..b1afcec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### Fixed + +- Exclude temporary files from genrated pull requests. + ### 0.9.0 - 2022-06-08 ### Added diff --git a/action.yml b/action.yml index 403e949..8c3ff40 100644 --- a/action.yml +++ b/action.yml @@ -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 @@ -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