mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 18:51:12 +00:00
Run the release branch check on the cumulus code releases as well (#1326)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user