mirror of
https://github.com/bitwarden/browser
synced 2024-12-12 09:17:47 +01:00
Update hotfix release branch name to hotfix-rc (#1396)
This commit is contained in:
parent
b134eba27b
commit
f845bcf6c1
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@ -57,8 +57,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
SAFARI_REF=master
|
SAFARI_REF=master
|
||||||
|
|
||||||
if [[ "$GITHUB_REF" == "refs/heads/hotfix" ]]; then
|
if [[ "$GITHUB_REF" == "refs/heads/hotfix-rc" ]]; then
|
||||||
SAFARI_REF=hotfix
|
SAFARI_REF=hotfix-rc
|
||||||
elif [[ "$GITHUB_REF" == "refs/heads/rc" ]]; then
|
elif [[ "$GITHUB_REF" == "refs/heads/rc" ]]; then
|
||||||
SAFARI_REF=rc
|
SAFARI_REF=rc
|
||||||
fi
|
fi
|
||||||
@ -75,7 +75,7 @@ jobs:
|
|||||||
echo "::set-output name=rc_branch_exists::0"
|
echo "::set-output name=rc_branch_exists::0"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $(git ls-remote --heads origin hotfix) ]]; then
|
if [[ $(git ls-remote --heads origin hotfix-rc) ]]; then
|
||||||
echo "::set-output name=hotfix_branch_exists::1"
|
echo "::set-output name=hotfix_branch_exists::1"
|
||||||
else
|
else
|
||||||
echo "::set-output name=hotfix_branch_exists::0"
|
echo "::set-output name=hotfix_branch_exists::0"
|
||||||
@ -877,7 +877,7 @@ jobs:
|
|||||||
&& needs.setup.outputs.rc_branch_exists == 0
|
&& needs.setup.outputs.rc_branch_exists == 0
|
||||||
&& needs.setup.outputs.hotfix_branch_exists == 0)
|
&& needs.setup.outputs.hotfix_branch_exists == 0)
|
||||||
|| (github.ref == 'refs/heads/rc' && needs.setup.outputs.hotfix_branch_exists == 0)
|
|| (github.ref == 'refs/heads/rc' && needs.setup.outputs.hotfix_branch_exists == 0)
|
||||||
|| github.ref == 'refs/heads/hotfix'
|
|| github.ref == 'refs/heads/hotfix-rc'
|
||||||
run: npm run upload:mas
|
run: npm run upload:mas
|
||||||
|
|
||||||
|
|
||||||
|
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@ -25,9 +25,9 @@ jobs:
|
|||||||
- name: Branch check
|
- name: Branch check
|
||||||
if: ${{ github.event.inputs.release_type != 'Dry Run' }}
|
if: ${{ github.event.inputs.release_type != 'Dry Run' }}
|
||||||
run: |
|
run: |
|
||||||
if [[ "$GITHUB_REF" != "refs/heads/rc" ]] && [[ "$GITHUB_REF" != "refs/heads/hotfix" ]]; then
|
if [[ "$GITHUB_REF" != "refs/heads/rc" ]] && [[ "$GITHUB_REF" != "refs/heads/hotfix-rc" ]]; then
|
||||||
echo "==================================="
|
echo "==================================="
|
||||||
echo "[!] Can only release from the 'rc' or 'hotfix' branches"
|
echo "[!] Can only release from the 'rc' or 'hotfix-rc' branches"
|
||||||
echo "==================================="
|
echo "==================================="
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user