1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-08 20:50:28 +00:00

refactor branch check logic

This commit is contained in:
Opeyemi Alao
2025-05-01 11:42:35 +01:00
parent 84d0ebb388
commit a0212e7dcb

View File

@@ -31,7 +31,7 @@ jobs:
- name: Branch check
if: ${{ github.event.inputs.release_type != 'Dry Run' }}
run: |
if [[ "$GITHUB_REF" != "refs/heads/rc" ]] && [[ "$GITHUB_REF" != "refs/heads/hotfix-rc-browser" ]] && [[ "$GITHUB_REF" != "refs/heads/rc-browser-2025.4.0"]]; then
if [[ ! "$GITHUB_REF" =~ ^refs/heads/(rc|hotfix-rc-browser|rc-browser-2025\.4\.0)$ ]]; then
echo "==================================="
echo "[!] Can only release from the 'rc' or 'hotfix-rc-browser' branches"
echo "==================================="