Use alternative environment for release build bump (#2855)

* Use alternative environment for release build bump

By using a separate environment, we can postpone the bump in the version
repository by adding a requirement for approval. Dev version will use
default (empty string) environment which doesn't have any constraints.

* Update build step name - it's not always dev build anymore

* Use dynamic environment name for beta/stable channels
This commit is contained in:
Jan Čermák 2023-10-23 12:34:11 +02:00 committed by GitHub
parent b56f660316
commit e928fa498f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,7 +128,7 @@ jobs:
push: true
build:
name: Development build for ${{ matrix.board.id }}
name: Build for ${{ matrix.board.id }}
permissions:
contents: write # for actions/upload-release-asset to upload release asset
needs: prepare
@ -241,8 +241,9 @@ jobs:
output/images/haos_ova*.qcow2.xz
bump_version:
name: Bump dev channel version
name: Bump ${{ needs.prepare.outputs.channel }} channel version
if: ${{ github.repository == 'home-assistant/operating-system' }}
environment: "${{ github.event_name == 'release' && needs.prepare.outputs.channel || '' }}"
needs: [ build, prepare ]
runs-on: ubuntu-22.04