diff options
| author | Takashi Kokubun <takashikkbn@gmail.com> | 2025-10-06 13:53:21 -0700 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2025-10-06 13:53:44 -0700 |
| commit | 57ea1c0be116db77834b9bd9850f3ee81d495247 (patch) | |
| tree | 3faef6bcda9eb71e69b065e936343c94e10b5ab4 | |
| parent | 03030bf112db6346b4055adb098bc93b95b6321a (diff) | |
sync_default_gems.yml: Detect past renames
| -rw-r--r-- | .github/workflows/sync_default_gems.yml | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/.github/workflows/sync_default_gems.yml b/.github/workflows/sync_default_gems.yml index c74f73ad58..d3aab34edb 100644 --- a/.github/workflows/sync_default_gems.yml +++ b/.github/workflows/sync_default_gems.yml @@ -36,8 +36,12 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 name: Check out ruby/ruby with: + fetch-depth: 0 # Fetch all history to recognize past renames token: ${{ github.repository == 'ruby/ruby' && secrets.MATZBOT_AUTO_UPDATE_TOKEN || secrets.GITHUB_TOKEN }} + - name: Increase rename limit + run: git config merge.renameLimit 999999 + - name: Run tool/sync_default_gems.rb run: ruby tool/sync_default_gems.rb "${gem_name}" "${gem_before}..${gem_after}" env: @@ -45,12 +49,6 @@ jobs: gem_before: ${{ github.event.client_payload.before || github.event.inputs.before }} gem_after: ${{ github.event.client_payload.after || github.event.inputs.after }} - - name: Check diffs - id: diff - run: | - git diff --color --no-ext-diff --ignore-submodules --exit-code || - echo update=true >> $GITHUB_OUTPUT - - name: Push run: | git pull --ff-only origin ${GITHUB_REF#refs/heads/} @@ -59,7 +57,6 @@ jobs: EMAIL: svn-admin@ruby-lang.org GIT_AUTHOR_NAME: git GIT_COMMITTER_NAME: git - if: ${{ steps.diff.outputs.update }} - uses: ./.github/actions/slack with: |
