Skip to content

Commit c8a4611

Browse files
committed
PSMDB-1884: fix fetching history for bazel run format
The `bazel run format` calls the `git merge-base HEAD origin/<base>` command. Using the `tj-actions/changed-files@v45` action is not reliable.
1 parent 7324561 commit c8a4611

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.github/workflows/format.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,12 @@ jobs:
1616
steps:
1717
- name: Checkout
1818
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
1921

2022
- name: Setup environment
2123
uses: ./.github/actions/setup-env
2224

23-
- name: Get changed files
24-
id: changed
25-
uses: tj-actions/changed-files@v45
26-
27-
- name: List changed files
28-
run: |
29-
echo "Changed files: ${{ steps.changed.outputs.all_changed_files }}"
30-
3125
- name: Run bazel format
3226
run: |
3327
# The --include_autogenerated_targets=True is needed to create the autogenerated targets.

0 commit comments

Comments
 (0)