Run the release branch check on the cumulus code releases as well (#1326)

This commit is contained in:
Chevdor
2022-06-02 13:53:38 +02:00
parent f9a04f9423
commit 7ea5c2e14b
2 changed files with 3 additions and 2 deletions
@@ -4,6 +4,7 @@ on:
branches:
- release-**v[0-9]+.[0-9]+.[0-9]+ # client
- release-**v[0-9]+ # runtimes
- polkadot-v[0-9]+.[0-9]+.[0-9]+ # cumulus code
workflow_dispatch:
@@ -15,7 +16,7 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Run check
shell: bash
run: ./scripts/ci/github/check-rel-br
+1 -1
View File
@@ -13,7 +13,7 @@ REPO=$(echo "$grv" | cut -d ' ' -f1 | cut -d$'\t' -f2 | cut -d '/' -f2 | cut -d
echo "[+] Detected repo: $REPO"
BRANCH=$(git branch --show-current)
if ! [[ "$BRANCH" =~ ^release.*$ ]]; then
if ! [[ "$BRANCH" =~ ^release.*$ || "$BRANCH" =~ ^polkadot.*$ ]]; then
echo "This script is meant to run only on a RELEASE branch."
echo "Try one of the following branch:"
git branch -r --format "%(refname:short)" --sort=-committerdate | grep -Ei '/?release' | head