Skip to content

Commit ad9806b

Browse files
committed
Checkout master branch in CI
1 parent e15272d commit ad9806b

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/ci.yml

+15
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ jobs:
7171
uses: actions/checkout@v3
7272
with:
7373
fetch-depth: 2
74+
- name: "checkout the `master` branch for tidy"
75+
uses: actions/checkout@v3
76+
with:
77+
ref: master
78+
fetch-depth: 1
7479
- name: configure the PR in which the error message will be posted
7580
run: "echo \"[CI_PR_NUMBER=$num]\""
7681
env:
@@ -485,6 +490,11 @@ jobs:
485490
uses: actions/checkout@v3
486491
with:
487492
fetch-depth: 2
493+
- name: "checkout the `master` branch for tidy"
494+
uses: actions/checkout@v3
495+
with:
496+
ref: master
497+
fetch-depth: 1
488498
- name: configure the PR in which the error message will be posted
489499
run: "echo \"[CI_PR_NUMBER=$num]\""
490500
env:
@@ -600,6 +610,11 @@ jobs:
600610
uses: actions/checkout@v3
601611
with:
602612
fetch-depth: 2
613+
- name: "checkout the `master` branch for tidy"
614+
uses: actions/checkout@v3
615+
with:
616+
ref: master
617+
fetch-depth: 1
603618
- name: configure the PR in which the error message will be posted
604619
run: "echo \"[CI_PR_NUMBER=$num]\""
605620
env:

src/ci/github-actions/ci.yml

+6
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ x--expand-yaml-anchors--remove:
103103
with:
104104
fetch-depth: 2
105105

106+
- name: checkout the `master` branch for tidy
107+
uses: actions/checkout@v3
108+
with:
109+
ref: master
110+
fetch-depth: 1
111+
106112
# Rust Log Analyzer can't currently detect the PR number of a GitHub
107113
# Actions build on its own, so a hint in the log message is needed to
108114
# point it in the right direction.

0 commit comments

Comments
 (0)