Skip to content

Commit ba65c82

Browse files
authored
chore(ci): use develop as default branch (#6)
## πŸ“ Summary Use `develop` as default branch. --- ## βœ… I have completed the following steps: * [x] Run `make lint` * [x] Run `make test` * [ ] Added tests (if applicable)
1 parent 2507fd8 commit ba65c82

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

β€Ž.github/workflows/bench.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
pull_request:
66
push:
7-
branches: [main]
7+
branches: [develop]
88

99
jobs:
1010
bench:
@@ -52,7 +52,7 @@ jobs:
5252
5353
# S3 upload directory, depending if it includes a comparison or not
5454
if [ "$HEAD_SHA" == "$BASE_SHA" ]; then
55-
# No comparison (i.e. running on a branch like main directly)
55+
# No comparison (i.e. running on a branch like develop directly)
5656
S3_UPLOAD_DIR="benchmark/${HEAD_SHA_SHORT}"
5757
else
5858
# Comparison (i.e. running on a PR)

β€Ž.github/workflows/checks.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
pull_request:
66
merge_group:
77
push:
8-
branches: [main]
8+
branches: [develop]
99

1010
env:
1111
CARGO_TERM_COLOR: always

β€Žscripts/ci/env-vars.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if [ -z "$HEAD_BRANCH" ]; then
2626
fi
2727

2828
# BASE_REF and BASE_SHA are the baseline (what the PR is pointing to, and what Criterion can compoare).
29-
export BASE_REF=${GITHUB_BASE_REF:=main} # main branch by default
29+
export BASE_REF=${GITHUB_BASE_REF:=develop} # "develop" branch is the default
3030
export BASE_SHA=$( git log -n 1 --pretty=format:"%H" origin/${BASE_REF} ) # get hash of base branch
3131
export BASE_SHA_SHORT=$( echo $BASE_SHA | cut -c1-7 )
3232

0 commit comments

Comments
Β (0)