From 79a1db482b4daca7a050ab40c2fd2d16a82fa561 Mon Sep 17 00:00:00 2001 From: Chevdor Date: Tue, 5 Jul 2022 13:37:16 +0200 Subject: [PATCH] Fix regexp to find the repo name (#5751) --- polkadot/.github/workflows/release-01_branch-check.yml | 2 +- polkadot/scripts/ci/github/check-rel-br | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/polkadot/.github/workflows/release-01_branch-check.yml b/polkadot/.github/workflows/release-01_branch-check.yml index 8748c1a10a..2cd1b5e9b5 100644 --- a/polkadot/.github/workflows/release-01_branch-check.yml +++ b/polkadot/.github/workflows/release-01_branch-check.yml @@ -7,7 +7,7 @@ on: workflow_dispatch: jobs: - tag_rc: + check_branch: runs-on: ubuntu-latest steps: - name: Checkout sources diff --git a/polkadot/scripts/ci/github/check-rel-br b/polkadot/scripts/ci/github/check-rel-br index 5efebeea31..1b49ae6217 100755 --- a/polkadot/scripts/ci/github/check-rel-br +++ b/polkadot/scripts/ci/github/check-rel-br @@ -9,7 +9,7 @@ grv=$(git remote --verbose | grep push) export RUST_LOG=none -REPO=$(echo "$grv" | cut -d ' ' -f1 | cut -d$'\t' -f2 | cut -d '/' -f2 | cut -d '.' -f1 | sort | uniq) +REPO=$(echo "$grv" | cut -d ' ' -f1 | cut -d$'\t' -f2 | sed 's/.*github.com\/\(.*\)/\1/g' | cut -d '/' -f2 | cut -d '.' -f1 | sort | uniq) echo "[+] Detected repo: $REPO" BRANCH=$(git branch --show-current)