summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcarsakiller <carsakiller@gmail.com>2024-05-23 08:19:08 +0000
committercarsakiller <carsakiller@gmail.com>2024-05-23 08:19:08 +0000
commit5a97a63cf7c607c4bce4f5e56732a44451e73e1a (patch)
treec9da31083c341975f1793cce315d3dd6676b7adb
parent3448f5e44c0fd9dbf15ebbbbae6994b9973a31ab (diff)
downloadlua-language-server-5a97a63cf7c607c4bce4f5e56732a44451e73e1a.zip
don't fetch as deep
-rwxr-xr-x.github/scripts/check-changelog.sh3
-rw-r--r--.github/workflows/changelog.yml2
2 files changed, 2 insertions, 3 deletions
diff --git a/.github/scripts/check-changelog.sh b/.github/scripts/check-changelog.sh
index aeec5aa1..32489144 100755
--- a/.github/scripts/check-changelog.sh
+++ b/.github/scripts/check-changelog.sh
@@ -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
diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml
index ccf93645..0f6a0dc4 100644
--- a/.github/workflows/changelog.yml
+++ b/.github/workflows/changelog.yml
@@ -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: |