diff --git a/.github/actions/setup-kcadm/action.yml b/.github/actions/setup-kcadm/action.yml index b8510e009..b226c8cef 100644 --- a/.github/actions/setup-kcadm/action.yml +++ b/.github/actions/setup-kcadm/action.yml @@ -4,15 +4,15 @@ inputs: version: description: 'Version of Keycloak' required: false - default: 17.0.1 runs: using: "composite" steps: - name: Setup kcadm shell: bash run: | + KEYCLOAK_VERSION=${{ inputs.version != '' && inputs.version || env.DEFAULT_KEYCLOAK_VERSION }} curl -fsSL https://github.com/keycloak/keycloak/releases/download/${KEYCLOAK_VERSION}/keycloak-${KEYCLOAK_VERSION}.tar.gz | tar xz ln -s keycloak-$KEYCLOAK_VERSION keycloak && ln -s ${PWD}/keycloak/bin/kcadm.sh /usr/local/bin kcadm.sh help env: - KEYCLOAK_VERSION: ${{ inputs.version }} + DEFAULT_KEYCLOAK_VERSION: 24.0.5 diff --git a/.github/workflows/updatecli.yml b/.github/workflows/updatecli.yml index daa169c14..83af4f4da 100644 --- a/.github/workflows/updatecli.yml +++ b/.github/workflows/updatecli.yml @@ -38,7 +38,7 @@ jobs: - uses: updatecli/updatecli-action@eb158f6fd9e425b940a6750d6318f98e050ac390 # v2.61.0 - name: Run Updatecli - run: "updatecli apply --config .updatecli/templates/github_releases.yaml --values .updatecli/values/github_releases/${{ matrix.file }}" + run: "updatecli apply -c .updatecli/templates/github_releases.yaml -v .updatecli/values/github_releases/${{ matrix.file }}" env: UPDATECLI_GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" USERNAME: ${{ github.actor }} diff --git a/.updatecli/values/github_releases/kcadm.yaml b/.updatecli/values/github_releases/kcadm.yaml new file mode 100644 index 000000000..f1c132094 --- /dev/null +++ b/.updatecli/values/github_releases/kcadm.yaml @@ -0,0 +1,11 @@ +github: + prefix: 'build(deps)' + message: 'bump kcadm to {{ source "lastRelease" }}' + +github_release: + owner: 'keycloak' + repo: 'keycloak' + +target: + file: '.github/actions/setup-kcadm/action.yml' + key: '$.runs.steps[0].env.DEFAULT_KEYCLOAK_VERSION' diff --git a/version.txt b/version.txt index d552e7ed1..e2339e91c 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -v5.29.5 +v5.29.6