Skip to content

Commit 58ba751

Browse files
fixup! test(ci): add changelog job that runs cargo xtask changelog
1 parent 9549b09 commit 58ba751

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,13 @@ jobs:
6868
runs-on: ubuntu-latest
6969

7070
steps:
71+
- name: 'PR commits + 1'
72+
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}"
73+
7174
- name: Checkout repo
7275
uses: actions/checkout@v5
76+
with:
77+
fetch-depth: ${{ env.PR_FETCH_DEPTH }}
7378

7479
- uses: actions/github-script@v7
7580
id: get-pull
@@ -111,11 +116,6 @@ jobs:
111116
fi
112117
git branch -f ${{ github.base_ref }} $REMOTE/${{ github.base_ref }}
113118
114-
- name: Caching
115-
uses: Swatinem/rust-cache@v2
116-
with:
117-
key: clippy-${{ matrix.target }}-${{ matrix.kind }}-${{ env.CACHE_SUFFIX }}
118-
119119
- name: Run `cargo xtask changelog …`
120120
run: |
121121
cargo xtask changelog "${{ github.base_ref }}"

0 commit comments

Comments
 (0)