diff options
| -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: |
