Skip to content

Commit

Permalink
Revert "Use action/checkout fetch-depth instead of manually fetch (op…
Browse files Browse the repository at this point in the history
…en-telemetry#4535)" (open-telemetry#4560)

Fixes open-telemetry#4559

This reverts commit 5405247.

Signed-off-by: Juraci Paixão Kröhling <[email protected]>
  • Loading branch information
jpkrohling authored Dec 16, 2021
1 parent e080cae commit cf5aa32
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@ jobs:

steps:
- uses: actions/checkout@v2
with:
# Only the latest commit of the feature branch is available
# automatically. To diff with the base branch, we need to
# fetch that too (and we only need its latest commit).
fetch-depth: 1

- name: Check for CHANGELOG changes
run: |
# Only the latest commit of the feature branch is available
# automatically. To diff with the base branch, we need to
# fetch that too (and we only need its latest commit).
git fetch origin ${{ github.base_ref }} --depth=1
if [[ $(git diff --name-only FETCH_HEAD | grep CHANGELOG) ]]
then
echo "A CHANGELOG was modified. Looks good!"
Expand Down

0 comments on commit cf5aa32

Please sign in to comment.