Skip to content

Commit 57ea1c0

Browse files
committed
sync_default_gems.yml: Detect past renames
1 parent 03030bf commit 57ea1c0

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/sync_default_gems.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,19 @@ jobs:
3636
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3737
name: Check out ruby/ruby
3838
with:
39+
fetch-depth: 0 # Fetch all history to recognize past renames
3940
token: ${{ github.repository == 'ruby/ruby' && secrets.MATZBOT_AUTO_UPDATE_TOKEN || secrets.GITHUB_TOKEN }}
4041

42+
- name: Increase rename limit
43+
run: git config merge.renameLimit 999999
44+
4145
- name: Run tool/sync_default_gems.rb
4246
run: ruby tool/sync_default_gems.rb "${gem_name}" "${gem_before}..${gem_after}"
4347
env:
4448
gem_name: ${{ github.event.client_payload.gem || github.event.inputs.gem }}
4549
gem_before: ${{ github.event.client_payload.before || github.event.inputs.before }}
4650
gem_after: ${{ github.event.client_payload.after || github.event.inputs.after }}
4751

48-
- name: Check diffs
49-
id: diff
50-
run: |
51-
git diff --color --no-ext-diff --ignore-submodules --exit-code ||
52-
echo update=true >> $GITHUB_OUTPUT
53-
5452
- name: Push
5553
run: |
5654
git pull --ff-only origin ${GITHUB_REF#refs/heads/}
@@ -59,7 +57,6 @@ jobs:
5957
6058
GIT_AUTHOR_NAME: git
6159
GIT_COMMITTER_NAME: git
62-
if: ${{ steps.diff.outputs.update }}
6360

6461
- uses: ./.github/actions/slack
6562
with:

0 commit comments

Comments
 (0)