fix(workflows): fetch talos latest version
This commit is contained in:
parent
75c1210aff
commit
3959ec7a2f
1 changed files with 4 additions and 3 deletions
7
.github/workflows/talos-boot-assets.yaml
vendored
7
.github/workflows/talos-boot-assets.yaml
vendored
|
@ -15,6 +15,7 @@ concurrency:
|
||||||
group: ${{ github.actor }}-build
|
group: ${{ github.actor }}-build
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
TALOS_VERSION : "${{ inputs.version || 'latest' }}"
|
||||||
# renovate: depName=ghcr.io/siderolabs/intel-ucode
|
# renovate: depName=ghcr.io/siderolabs/intel-ucode
|
||||||
INTEL_UCODE_VERSION: 20231114
|
INTEL_UCODE_VERSION: 20231114
|
||||||
# renovate: depName=ghcr.io/siderolabs/i915-ucode
|
# renovate: depName=ghcr.io/siderolabs/i915-ucode
|
||||||
|
@ -29,10 +30,10 @@ jobs:
|
||||||
- name: Fetch Talos release version
|
- name: Fetch Talos release version
|
||||||
id: talos-release
|
id: talos-release
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ inputs.version }}" != "latest" ]; then
|
if [ "${{ env.TALOS_VERSION }}" == "latest" ]; then
|
||||||
talos_release_tag="${{ inputs.version }}"
|
|
||||||
else
|
|
||||||
talos_release_tag=$(curl -sL https://api.github.com/repos/siderolabs/talos/releases/latest | jq -r ".tag_name")
|
talos_release_tag=$(curl -sL https://api.github.com/repos/siderolabs/talos/releases/latest | jq -r ".tag_name")
|
||||||
|
else
|
||||||
|
talos_release_tag="${{ env.TALOS_VERSION }}"
|
||||||
fi
|
fi
|
||||||
echo "talos_release_tag=$talos_release_tag" >> $GITHUB_OUTPUT
|
echo "talos_release_tag=$talos_release_tag" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue