-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (39 loc) · 1.04 KB
/
build_latest.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Build-Satellite-Firmware
on:
push:
branches:
- develop
workflow_dispatch:
env:
DEFAULT_PYTHON: "3.9"
jobs:
build-firmware:
uses: esphome/workflows/.github/workflows/build.yml@main
with:
files: |
config/satellite1.factory.yaml
esphome-version: 2024.12.2
release-summary: develop-branch
release-url:
release-version:
create_artifact_matrix:
name: Create artifact matrix
needs:
- build-firmware
outputs:
matrix: ${{ steps.artifacts.outputs.matrix }}
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/[email protected]
with:
path: files
- run: tree
- name: Get artifact names
id: artifacts
run: |
artifacts=$(ls --format=single-column files)
echo "artifacts<<EOF" >> $GITHUB_OUTPUT
echo "$artifacts" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
echo "matrix=$(ls files | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_OUTPUT