Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc959e53

Browse files
committed
fixup! chore: pin dogfood to release branch during release freeze
1 parent82964e5 commitc959e53

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

‎.github/workflows/ci.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1475,8 +1475,8 @@ jobs:
14751475
./build/*.deb
14761476
retention-days:7
14771477

1478-
# Deploy is handled in deploy.yaml so we can
1479-
trigger-deploy:
1478+
# Deploy is handled in deploy.yaml so we can apply concurrency limits.
1479+
deploy:
14801480
needs:
14811481
-changes
14821482
-build

‎scripts/should_deploy.sh‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ log "Using remote '$remote'"
2929
# Step 1: List all release branches and sort them by major/minor so we can find
3030
# the latest release branch.
3131
release_branches=$(
32-
git branch -r --format='%(refname:short)'|
33-
grep -E"${remote}/release/[0-9]+\.[0-9]+$"|
34-
sed"s|${remote}/||"|
35-
sort -V
32+
git branch -r --format='%(refname:short)'|
33+
grep -E"${remote}/release/[0-9]+\.[0-9]+$"|
34+
sed"s|${remote}/||"|
35+
sort -V
3636
)
3737

3838
# As a sanity check, release/2.26 should exist.
39-
if!echo"$release_branches"| grep"release/2.26">/dev/null;then
39+
if!echo"$release_branches"| grep"release/2.26">/dev/null;then
4040
error"Could not find existing release branches. Did you run 'git fetch -ap${remote}'?"
4141
fi
4242

@@ -47,7 +47,7 @@ log "Latest release branch version: $latest_release_branch_version"
4747

4848
# Step 2: check if a matching tag `v<x.y>.0` exists. If it does not, we will
4949
# use the release branch as the deploy branch.
50-
if! git rev-parse"refs/tags/v${latest_release_branch_version}.0">/dev/null2>&1;then
50+
if! git rev-parse"refs/tags/v${latest_release_branch_version}.0">/dev/null2>&1;then
5151
log"Tag 'v${latest_release_branch_version}.0' does not exist, using release branch as deploy branch"
5252
deploy_branch=$latest_release_branch
5353
else
@@ -58,7 +58,7 @@ log "Deploy branch: $deploy_branch"
5858
# Finally, check if the current branch is the deploy branch.
5959
log
6060
if [["$branch_name"!="$deploy_branch" ]];then
61-
log"VERDICT: DO NOT DEPLOY"
62-
exit 1
61+
log"VERDICT: DO NOT DEPLOY"
62+
exit 1
6363
fi
6464
log"VERDICT: DEPLOY"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp