.github/workflows/make-ha-frontend-sdist.yml: HA Frontend Version as input parameter

Signed-off-by: Anton Fischl <github@fischl-online.de>
This commit is contained in:
2022-03-15 19:07:11 +01:00
parent 36d85e68b8
commit 792158d0f3

View File

@@ -2,6 +2,11 @@ name: 'HA Frontend - make SDIST'
on:
workflow_dispatch:
inputs:
frontend_version:
description: 'Home Assistant Frontend Version'
required: true
default: 'latest'
env:
PYTHON_VERSION: 3.8
@@ -16,8 +21,13 @@ jobs:
- name: get-version
id: get-version
run: |
wget -qO - https://api.github.com/repos/home-assistant/frontend/releases/latest|jq -r '.tag_name'
echo "::set-output name=version::$(wget -qO - https://api.github.com/repos/home-assistant/frontend/releases/latest|jq -r '.tag_name')"
if [ "${{ github.event.inputs.frontend_version }}" == "latest" ];then
wget -qO - https://api.github.com/repos/home-assistant/frontend/releases/latest|jq -r '.tag_name'
echo "::set-output name=version::$(wget -qO - https://api.github.com/repos/home-assistant/frontend/releases/latest|jq -r '.tag_name')"
else
echo "${{ github.event.inputs.frontend_version }}"
echo "::set-output name=version::${{ github.event.inputs.frontend_version }}"
fi
- name: Checkout frontend repository
uses: actions/checkout@v3