Fail release workflow if not in tags
This commit is contained in:
parent
18671683ff
commit
8262f6fb20
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ "$(echo $GITHUB_REF| cut -d'/' -f2)" == "tags" ]; then
|
||||
exit 1;
|
||||
fi
|
||||
|
|
@ -10,10 +10,11 @@ jobs:
|
|||
runs-on: rust-cross
|
||||
name: stable / cross-${{ matrix.target }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
fail-fast: true
|
||||
matrix:
|
||||
target: ["armv7-unknown-linux-gnueabihf", "aarch64-unknown-linux-gnu", "x86_64-unknown-linux-gnu"]
|
||||
steps:
|
||||
- run: echo $PWD && ./.gitea/scripts/check-tag
|
||||
- uses: actions/checkout@v3
|
||||
- run: cargo fmt --check
|
||||
- uses: https://github.com/Swatinem/rust-cache@v2
|
||||
|
|
|
|||
Loading…
Reference in New Issue