Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion .github/workflows/version_bumps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branch:
description: 'Release Branch'
required: true
default: '8.4'
default: '8.19'
type: string
bump:
description: 'Bump type'
Expand All @@ -16,6 +16,16 @@ on:
- "patch"
- "minor"
- "major"
extra_gems_minor:
description: 'Additional gems to bump at minor level (space-separated)'
required: false
default: ''
type: string
extra_gems_major:
description: 'Additional gems to bump at major level (space-separated)'
required: false
default: ''
type: string

permissions:
pull-requests: write
Expand Down Expand Up @@ -45,6 +55,24 @@ jobs:
- run: git config --global user.name "logstashmachine"
- run: ./gradlew clean installDefaultGems
- run: ./vendor/jruby/bin/jruby -S bundle update --all --${{ github.event.inputs.bump }} --strict
- name: Bump selected deps at minor level
if: ${{ inputs.bump == 'patch' }}
run: |
AWS_GEMS=$(./vendor/jruby/bin/jruby -S bundle list --name-only | grep '^aws-')
EXTRA="${{ inputs.extra_gems_minor }}"
GEMS=$(echo "${AWS_GEMS} sequel ${EXTRA}" | xargs)
if [ -n "$GEMS" ]; then
echo "Bumping at --minor: ${GEMS}"
./vendor/jruby/bin/jruby -S bundle update $GEMS --minor --strict --conservative
fi
- name: Bump selected deps at major level
if: ${{ inputs.bump != 'major' && inputs.extra_gems_major != '' }}
run: |
GEMS=$(echo "${{ inputs.extra_gems_major }}" | xargs)
if [ -n "$GEMS" ]; then
echo "Bumping at --major: ${GEMS}"
./vendor/jruby/bin/jruby -S bundle update $GEMS --major --strict --conservative
fi
- run: mv Gemfile.lock Gemfile.jruby-*.lock.release
- run: echo "T=$(date +%s)" >> $GITHUB_ENV
- run: echo "BRANCH=update_lock_${{ env.INPUTS_BRANCH }}_${T}" >> $GITHUB_ENV
Expand Down
Loading