forked from elastic/logstash
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.04 KB
/
bump-java-version.yml
File metadata and controls
41 lines (38 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: bump-java-version
on:
schedule:
# Run weekly on Mondays at midnight UTC
- cron: '0 0 * * 1'
workflow_dispatch:
jobs:
filter:
runs-on: ubuntu-latest
timeout-minutes: 1
permissions:
contents: read
outputs:
matrix: ${{ steps.generator.outputs.matrix }}
steps:
- id: generator
uses: elastic/oblt-actions/elastic/active-branches@v1
with:
filter-branches: true
bump:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
needs: [filter]
strategy:
matrix: ${{ fromJson(needs.filter.outputs.matrix) }}
steps:
- uses: actions/checkout@v6
with:
ref: ${{ matrix.branch }}
- uses: elastic/oblt-actions/updatecli/run@v1
with:
command: apply --config .ci/updatecli/bump-java-version.yml --values .ci/updatecli/values.d/scm.yml
version-file: .updatecli-version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LOGSTASH_BRANCH: ${{ matrix.branch }}