.github: Update mantle in old LTS too

This commit is contained in:
Krzesimir Nowak 2022-09-26 14:23:47 +02:00
parent 25883519d9
commit 3ebbbd01cb

View File

@ -11,7 +11,7 @@ jobs:
get-mantle-release: get-mantle-release:
strategy: strategy:
matrix: matrix:
branch: [main,alpha,beta,stable,lts] branch: [main,alpha,beta,stable,lts,lts-old]
fail-fast: false fail-fast: false
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -20,6 +20,8 @@ jobs:
run: | run: |
if [ ${{ matrix.branch }} = "main" ]; then if [ ${{ matrix.branch }} = "main" ]; then
echo ::set-output name=BRANCH::main echo ::set-output name=BRANCH::main
elif [[ ${{ matrix.branch }} = 'lts-old'; then
echo ::set-output name=BRANCH::flatcar-lts-2605
else else
major=$(curl -sSL https://${{ matrix.branch }}.release.flatcar-linux.net/amd64-usr/current/version.txt | awk -F= '/FLATCAR_BUILD=/{ print $2 }') major=$(curl -sSL https://${{ matrix.branch }}.release.flatcar-linux.net/amd64-usr/current/version.txt | awk -F= '/FLATCAR_BUILD=/{ print $2 }')
echo ::set-output name=BRANCH::flatcar-${major} echo ::set-output name=BRANCH::flatcar-${major}