mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-25 22:16:30 +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:
parent
d9b49bbcb8
commit
49f26c3d2e
3
.github/workflows/artifacts-index.yaml
vendored
3
.github/workflows/artifacts-index.yaml
vendored
@ -89,5 +89,6 @@ jobs:
|
|||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
--data '{"files": [
|
--data '{"files": [
|
||||||
"https://os-artifacts.home-assistant.io/index.html",
|
"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"
|
||||||
] }'
|
] }'
|
||||||
|
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
@ -245,7 +245,7 @@ jobs:
|
|||||||
|
|
||||||
update_index:
|
update_index:
|
||||||
name: Update artifacts index
|
name: Update artifacts index
|
||||||
if: ${{ github.event_name != 'release' }}
|
if: ${{ github.event_name != 'release' && (always() && steps.prepare.outcome == 'success') }}
|
||||||
needs: [ build, prepare ]
|
needs: [ build, prepare ]
|
||||||
uses: home-assistant/operating-system/.github/workflows/artifacts-index.yaml@dev
|
uses: home-assistant/operating-system/.github/workflows/artifacts-index.yaml@dev
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user