[LTS] Fail firmware builds if . in branch name (#5010)

* check for dot

* put message

* make error more visible
This commit is contained in:
David Holdeman 2023-01-28 16:00:21 -06:00 committed by GitHub
parent d7c183debd
commit 05eed39ca7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -286,6 +286,9 @@ jobs:
skip-rate: 95
steps:
- name: Check branch name
if: ${{ contains(github.ref_name, '.') }}
run: echo '::error::Branch names must not contain ".", this breaks firmware autoupdates.' && exit 1
- name: Execution throttle early exit
# Don't skip any jobs if this workflow was run manually.
if: ${{ matrix.skip-rate && github.event_name != 'workflow_dispatch' }}
@ -444,6 +447,9 @@ jobs:
build-primary-bundle:
runs-on: ubuntu-latest
steps:
- name: Check branch name
if: ${{ contains(github.ref_name, '.') }}
run: echo '::error::Branch names must not contain ".", this breaks firmware autoupdates.' && exit 1
- uses: actions/checkout@v3
with:
submodules: recursive