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