-
Couldn't load subscription status.
- Fork 3.5k
GH action for updating logstash version #18035
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
95119ee
GH action for updating logstash version
donoghuc e75a275
use stub workflow to test
donoghuc 9f2a3bd
Separate step when modifying
donoghuc 3d29a0a
dont track temp updatecli file and install action
donoghuc fafaf94
restore stub
donoghuc beab304
Refactor updatecli workflow
donoghuc 537f00d
Use test stub to validate changes
donoghuc f7bf2c6
fix inputs section
donoghuc 5eb366e
fix branch
donoghuc c0b7aab
dont fail if file is not present
donoghuc bc2f8da
try with no global conditionals
donoghuc 76da246
file condition
donoghuc 65baa46
name conditional
donoghuc d53ef1d
split into separate pipeline files
donoghuc ec98a22
remove unused scmid
donoghuc 9eff1f1
no explicit pr action?
donoghuc 83568e4
add back PR
donoghuc fe19127
try sources pattern
donoghuc 5a3ba90
explicitly connect target with scmid
donoghuc f6306aa
ensure lock file lookup executes from checkout
donoghuc fa1538e
Cleanup
donoghuc c7bc793
test
donoghuc 364c831
restore LOGSTASH_BRANCH
donoghuc ea5ddcc
codereview feedback
donoghuc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,81 @@ | ||
| --- | ||
| name: Update logstash version files | ||
| pipelineid: "logstash/version-updates-{{ requiredEnv "LOGSTASH_BRANCH" }}" | ||
|
|
||
| scms: | ||
| default: | ||
| kind: github | ||
| spec: | ||
| user: '{{ requiredEnv "GITHUB_ACTOR" }}' | ||
| username: '{{ requiredEnv "GITHUB_ACTOR" }}' | ||
| owner: '{{ .scm.owner }}' | ||
| repository: '{{ .scm.repository }}' | ||
| token: '{{ requiredEnv "GITHUB_TOKEN" }}' | ||
| branch: '{{ requiredEnv "LOGSTASH_BRANCH" }}' | ||
| commitusingapi: true | ||
| force: false | ||
|
|
||
| actions: | ||
| default: | ||
| title: 'Bump logstash version {{ requiredEnv "LOGSTASH_VERSION" }}' | ||
| kind: github/pullrequest | ||
| scmid: default | ||
| spec: | ||
| automerge: false | ||
| labels: | ||
| - automation | ||
| description: |- | ||
| ### What | ||
| Update logstash version | ||
|
|
||
| sources: | ||
| lock_file_exists: | ||
| kind: shell | ||
| scmid: default | ||
| spec: | ||
| command: test -f Gemfile.jruby-3.1.lock.release | ||
|
|
||
| targets: | ||
| update_logstash_version: | ||
| name: Update logstash version in versions.yml | ||
| kind: yaml | ||
| disablesourceinput: true | ||
| scmid: default | ||
| spec: | ||
| file: versions.yml | ||
| key: $.logstash | ||
| value: '{{ requiredEnv "LOGSTASH_VERSION" }}' | ||
|
|
||
| update_logstash_core_version: | ||
| name: Update logstash-core version in versions.yml | ||
| kind: yaml | ||
| disablesourceinput: true | ||
| scmid: default | ||
| spec: | ||
| file: versions.yml | ||
| key: $.logstash-core | ||
| value: '{{ requiredEnv "LOGSTASH_VERSION" }}' | ||
|
|
||
| update_gemfile_lock_dependency: | ||
| name: Update logstash-core dependency in lockfile | ||
| kind: file | ||
| disablesourceinput: true | ||
| scmid: default | ||
| dependson: | ||
| - 'source#lock_file_exists' | ||
| spec: | ||
| file: Gemfile.jruby-3.1.lock.release | ||
| matchpattern: 'logstash-core \(= [0-9]+\.[0-9]+\.[0-9]+' | ||
| replacepattern: 'logstash-core (= {{ requiredEnv "LOGSTASH_VERSION" }}' | ||
|
|
||
| update_gemfile_lock_spec: | ||
| name: Update logstash-core spec in lockfile | ||
| kind: file | ||
| disablesourceinput: true | ||
| scmid: default | ||
| dependson: | ||
| - 'source#lock_file_exists' | ||
| spec: | ||
| file: Gemfile.jruby-3.1.lock.release | ||
| matchpattern: 'logstash-core \([0-9]+\.[0-9]+\.[0-9]+-java\)' | ||
| replacepattern: 'logstash-core ({{ requiredEnv "LOGSTASH_VERSION" }}-java)' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| scm: | ||
| owner: elastic | ||
| repository: logstash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| name: bump-logstash-version | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| logstash_version: | ||
| description: 'Logstash version (example: 9.1.4)' | ||
| required: true | ||
| type: string | ||
| logstash_branch: | ||
| description: 'Logstash branch (example: 9.1)' | ||
| required: true | ||
| type: string | ||
|
|
||
| jobs: | ||
| bump: | ||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
|
|
||
| - uses: elastic/oblt-actions/updatecli/run@v1 | ||
| with: | ||
| command: apply --config .ci/updatecli/bump-logstash-version.yml --values .ci/updatecli/values.d/scm.yml | ||
| version-file: .updatecli-version | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| LOGSTASH_BRANCH: "${{ github.event.inputs.logstash_branch }}" | ||
| LOGSTASH_VERSION: "${{ github.event.inputs.logstash_version }}" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| v0.104.0 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.