Skip to content

Commit

Permalink
ci(build): check input and additional information (#97)
Browse files Browse the repository at this point in the history
Signed-off-by: Krzysztof Słonka <[email protected]>
  • Loading branch information
slonka authored Jul 1, 2024
1 parent 55e1d20 commit ca6a423
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/build-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
workflow_dispatch:
inputs:
version:
description: Envoy version to build (don't include leading v)
description: Envoy version to build (don't include leading v, don't cancel the build because things might not be cleaned up by terraform properly)
type: string
required: true
skip-release:
Expand All @@ -20,7 +20,20 @@ permissions:
contents: write

jobs:
check-input:
runs-on: ubuntu-latest
steps:
- name: Fail if version starts with "v"
id: check-v
run: |
VERSION=${{ inputs.version }}
if [[ $VERSION == v* ]]; then
echo "Run this action without 'v' prefix - ${VERSION:1}. Don't cancel a build in progress build because things might not be cleaned up by terraform"
exit 1
fi
shell: bash
build:
needs: check-input
strategy:
matrix:
os: [darwin, linux, windows]
Expand Down

0 comments on commit ca6a423

Please sign in to comment.