1
0
mirror of https://github.com/home-assistant/operating-system.git synced 2025-12-20 02:18:37 +00:00

Upload artifacts index even on partial builds (#2901)

Make sure that the artifacts index always gets updated. This allows to
use builds even when not all of them are available.
This commit is contained in:
Stefan Agner
2023-11-02 13:46:12 +01:00
committed by GitHub
parent d9b49bbcb8
commit 49f26c3d2e
2 changed files with 3 additions and 2 deletions

View File

@@ -89,5 +89,6 @@ jobs:
-H "Content-Type: application/json" \
--data '{"files": [
"https://os-artifacts.home-assistant.io/index.html",
"https://os-artifacts.home-assistant.io/index.json"
"https://os-artifacts.home-assistant.io/index.json",
"https://os-artifacts.home-assistant.io/indexes/${{ github.event.inputs.version }}.json"
] }'

View File

@@ -245,7 +245,7 @@ jobs:
update_index:
name: Update artifacts index
if: ${{ github.event_name != 'release' }}
if: ${{ github.event_name != 'release' && (always() && steps.prepare.outcome == 'success') }}
needs: [ build, prepare ]
uses: home-assistant/operating-system/.github/workflows/artifacts-index.yaml@dev
with: