Skip to content

Commit

Permalink
Sanity check git tag names
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Aug 30, 2023
1 parent 9eb3357 commit 0ffb4f9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,19 @@ on:
permissions: read-all

jobs:
sanity-check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Sanity check tag name
run: |
git describe --tag | grep -E "mainnet|testnet"
build-native-runtime:
needs: sanity-check
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -113,6 +125,7 @@ jobs:
if-no-files-found: error

build-wasm-runtime:
needs: sanity-check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -152,6 +165,7 @@ jobs:
if-no-files-found: error

docker-build:
needs: sanity-check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -175,6 +189,7 @@ jobs:
docker logout
build-creditcoin-js:
needs: sanity-check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 0ffb4f9

Please sign in to comment.