Skip to content

Commit

Permalink
don't fetch as deep
Browse files Browse the repository at this point in the history
  • Loading branch information
carsakiller committed May 23, 2024
1 parent 3448f5e commit 5a97a63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/scripts/check-changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ CHANGELOG_FILE="changelog.md"
git fetch origin $GITHUB_BASE_REF
git fetch

echo $(git remote)
echo $(git branch)
echo $(git branch -a)

# Check if the changelog file was modified in the PR
if git diff --name-only origin/$GITHUB_BASE_REF..$GITHUB_HEAD_REF | grep -q $CHANGELOG_FILE; then
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0 # Need entire git history
fetch-depth: 2

- name: Set up environment
run: |
Expand Down

0 comments on commit 5a97a63

Please sign in to comment.